Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > styling the GroupName in asp:Panel

Reply
Thread Tools

styling the GroupName in asp:Panel

 
 
Sridhar Chinta
Guest
Posts: n/a
 
      06-28-2006
hey all i am not able to change the color of Groupname in panel control from
blue to black any suggestions?


 
Reply With Quote
 
 
 
 
neilmcguigan@gmail.com
Guest
Posts: n/a
 
      06-28-2006
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?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco groupname/password helloshahid@gmail.com Cisco 2 10-03-2005 01:27 PM
radiobuttonlist with groupname? Matt Jensen ASP .Net 3 07-05-2005 03:27 PM
RadioButton GroupName does not work ! Mick ASP .Net 2 01-05-2005 10:15 AM
Radio Button and groupName bug in ASP.NET Rishi Chandra ASP .Net 0 12-22-2003 08:26 AM
GroupName in RadioButton Server Control Sundar ASP .Net 0 12-09-2003 10:57 PM



Advertisments