Hey Guys,
I got a requirement from the business to change the Background color of the webpart title for Out of Box webparts. Then i started looking on CSS I found the following CSS class which overrides the style of WebPart Title.
.ms-WPHeader TD
{
border-bottom:0px solid #4e7cb7;
border-collapse:collapse;
}
Change this class as per your requirement then you are done....
.ms-WPHeader TD{
height:40px;
background-color: #0174DF;
font-size: larger;
font-weight: bold;
border-bottom:0px solid #4e7cb7;
border-collapse:collapse;
}
Saturday, May 17, 2008
How to Change the Background Color of WebPart Title
Subscribe to:
Post Comments (Atom)




1 comments:
Hi Uday.....
I am adding webparts on my Page Programatically......so
System.Web.UI.WebControls.WebParts.WebPart HelloWP = new Hello.HelloWebpart;
HelloWP.Title = "My Webpart";
mgr.AddWebPart(HelloWP, "Left", 0);
(mgr is my WebpartManager)
now how can i set the CSS to my webpart....???
Post a Comment