I am putting together a quick and dirty website using the asp.net 4.0 template in Visual Studio 2010.
My ISP only supports 3.5. When I convert from 4.0 to 3.5 the navigationmenu css screws up (ie the links just appear as normal links).
The code is just:
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
<asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
</Items>
</asp:Menu>
And the CSS is:
div.hideSkiplink
{
background-color:#dba201;
width:100%;
}
div.menu
{
padding: 4px 0px 4px 8px;
color:Red;
}
div.menu ul
{
list-style: none;
margin: 0px;
padding: 0px;
width: auto;
}
div.menu ul li a, div.menu ul li a:visited
{
color: #fff;
display: block;
line-height: 1.35em;
padding: 0px 20px;
text-decoration: none;
white-space: nowrap;
}
div.menu ul li a:hover
{
text-decoration: none;
font-weight:bold;
}
div.menu ul li a:active
{
font-weight:bold;
text-decoration: none;
}
ie pretty much the default with a couple of minor tweaks.
Any idea why it doesn't render the css, and how I can fix it?!