Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
How to exempt a:link style from a WebDataMenu?
posted

Hy Guys,

My web site use a global stylesheet that have the following style in it:

A:link {

  color: #333399;

  text-decoration: underline; }

A:visited {

  text-decoration: underline;

  color: #333399; }

When I use the WebDataMenu with StyleSet (Office2007Black), all items are underlined with forecolor #333399.

Usually root Items menu in Office2007Black styleset are not underlined. Also the forecolor is White.

It works fine if I remove A:link and a:visited from my stylesheet but I don't want to do that.

Is there a way to exempt the link behavior only for the WebDataMenu in order to have the real Office2007Black style?

<ig:WebDataMenu ID="WebDataMenu1" runat="server" StyleSetName="Office2007Black" >

<GroupSettings Orientation="Horizontal" />

</ig:WebDataMenu>

 

Thanks you.

Marc Lamontagne, Eng.

Parents
No Data
Reply
  • 20255
    Offline posted

    Hey Marc Lamontagne,

    You are using global style that is applied to all a:link elements and this is causing the undeline text decoration of the root menu items.

    You can assign to the items CssClass that is removing the text-decoration or to a more specific style to the menu items by using a CSS selector.

Children
No Data