Hvernig til Breyting bakgrunnslit WebPart Titill

Hey krakkar,
Ég fékk kröfu frá fyrirtækinu til að breyta bakgrunnslit webpart titill fyrir Out of Box webparts. Þá fór ég að leita á CSS Ég fann eftirfarandi CSS bekknum sem kemur í stíl WebPart Titill.

.MS-WPHeader TD
{
border-botn:0px solid # 4e7cb7;
border-fall:fall;
}

Change this class as per your requirement then you are done….

.MS-WPHeader TD{
hæð:40px;
background-color: #0174DF;
font-size: larger;
font-weight: bold;
border-botn:0px solid # 4e7cb7;
border-fall:fall;
}

1 comment to How to Change the Background Color of WebPart Title

  • noreply@blogger.com (Saurabh)

    Hæ 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….???

Skildu eftir svar

Hægt er að nota þessi HTML tög

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>