styling the GroupName in asp:Panel

Discussion in 'ASP .Net' started by Sridhar Chinta, Jun 29, 2006.

  1. hey all i am not able to change the color of Groupname in panel control from
    blue to black any suggestions?
     
    Sridhar Chinta, Jun 29, 2006
    #1
    1. Advertising

  2. Sridhar Chinta

    Guest

    hello

    i assume you are referring to the forecolour of the GroupingText
    property?

    if you set the forecolour of the panel, both the groupingtext and text
    are rendered the same colour

    if you look at the resulting HTML, you'll see that the groupingtext is
    rendered as a < legend > html tag, and the content of a group is
    inside a < fieldset >

    if you want a different colour for the groupingtext, do this:

    1. give your panel a CSSClass name, ex Panel
    2. add this style:

    <style type="text/css">

    ..Panel legend
    {
    color:green;
    }

    </style>

    cheers

    neil



    Sridhar Chinta wrote:
    > hey all i am not able to change the color of Groupname in panel control from
    > blue to black any suggestions?
     
    , Jun 29, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sundar
    Replies:
    0
    Views:
    396
    Sundar
    Dec 9, 2003
  2. Rishi Chandra

    Radio Button and groupName bug in ASP.NET

    Rishi Chandra, Dec 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    654
    Rishi Chandra
    Dec 22, 2003
  3. Mick
    Replies:
    2
    Views:
    7,148
    Saravana
    Jan 5, 2005
  4. kaushik
    Replies:
    1
    Views:
    858
  5. kaushik

    change the color of Groupname in panel control

    kaushik, Sep 23, 2008, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    718
    kaushik
    Sep 23, 2008
Loading...

Share This Page