Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

The following on my master page results in blue text, not white. Is this a bug?

 

<td style="height: 24px">

<div style="position: absolute; top: 77px; left: 158px;">

<asp:Menu ID="SiteMenu" runat="server" Orientation="Horizontal" DataSourceID="SiteMapDataSource" Width="180px">

<StaticMenuItemStyle ForeColor="White" />

</asp:Menu>

<asp:SiteMapDataSource ID="SiteMapDataSource" runat="server" ShowStartingNode="False" />

</div>

</td>

 

It's weird, it generates the following mark-up for the anchor element:

 

<a class="ctl00_SiteMenu_1 ctl00_SiteMenu_3" href="/VSDOTNET/Project1/Page1.aspx">Page1</a>

 

How is this a valid CSS class for one (notice the space in the class name)? And two this definitely doesn't say 'style="color: White;"'

Posted

I found that if I don't use a SiteMapDataSource then I don't get the error. I can continue using the SiteMapDataSource if I put

 

.ctl00_SiteMenu_1

{

.color: White !important;

}

 

in my style sheet.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...