locked
How to change the font color of link tags in Webpart? RRS feed

  • Question

  • Hi,

         I developed a webpart that inherits from Microsoft.SharePoint.WebPartPages.WebPart  class. This webpart contains asp:menu control. The webpart displays the menu control, but the font color of the menu items is always darkblue, this was inheriting from ms-wpbody. so in the code i set this.UseDefaultStyle=false, now this time it is inheriting from ms-propertysheet and its color is darkblue too.

    How do i change the font color of this link tags in the webpart?

    please suggest. i appreciate your help

    Thursday, December 1, 2011 7:50 AM

Answers

  • hi all,

                i figured it out my self. i have Set CssClass for the menuitemstyles as of the leftnavigation menu bar. it works now.

    Thanks

    • Proposed as answer by nuclear Thursday, December 1, 2011 12:08 PM
    • Marked as answer by Pengyu Zhao Monday, December 12, 2011 8:34 AM
    Thursday, December 1, 2011 10:22 AM