suzannea595
Technical User
Hi,
I am building a site that uses nested master pages. I want to use a separate style sheet on the nested master. I found info on how to override the master page content and have tried to implement it, but the css on the nested page is not being recognized (it's still pulling the css used on the master page). The code I currently have is below. I have a feeling it's a simple fix but I've been looking at it for so long that I can't see the forest for the trees.
MASTER PAGE HEAD ELEMENT:
<head runat="server" id="Head1">
<link runat="server" id="omfnstyle" href="omfn.css" rel="stylesheet" type="text/css" />
<asp:contentplaceholder id="headContent" runat="server">
<title>Old Mutual Financial Network</title>
</asp:contentplaceholder>
</head>
NESTED MASTER PAGE HEAD PLACEHOLDER:
<asp:Content id="EspanolHeadContent"
ContentPlaceHolderID="headContent" runat="server">
<title>OMFN: En Español </title>
<link runat="server" href="~/espanol/espanol-spanish.css" type="text/css" rel="stylesheet" />
</asp:Content>
Note: the css the nested page refers to is inside of another directory. However, the nested master page is in the top level directory.
Thanks,
S~
I am building a site that uses nested master pages. I want to use a separate style sheet on the nested master. I found info on how to override the master page content and have tried to implement it, but the css on the nested page is not being recognized (it's still pulling the css used on the master page). The code I currently have is below. I have a feeling it's a simple fix but I've been looking at it for so long that I can't see the forest for the trees.
MASTER PAGE HEAD ELEMENT:
<head runat="server" id="Head1">
<link runat="server" id="omfnstyle" href="omfn.css" rel="stylesheet" type="text/css" />
<asp:contentplaceholder id="headContent" runat="server">
<title>Old Mutual Financial Network</title>
</asp:contentplaceholder>
</head>
NESTED MASTER PAGE HEAD PLACEHOLDER:
<asp:Content id="EspanolHeadContent"
ContentPlaceHolderID="headContent" runat="server">
<title>OMFN: En Español </title>
<link runat="server" href="~/espanol/espanol-spanish.css" type="text/css" rel="stylesheet" />
</asp:Content>
Note: the css the nested page refers to is inside of another directory. However, the nested master page is in the top level directory.
Thanks,
S~