Please use webpart ID to use below styles
<style type="text/css">
/* === Title bar CSS === */
/* TR - title bar for web part */
#MSOZoneCell_WebPartWPQ5 .ms-WPHeader
{
background-color:green;
}
/* H3 - Text in title bar of web part */
#MSOZoneCell_WebPartWPQ5 .ms-WPTitle a
{
color:white;
font-family:"Comic Sans MS";
font-size:24pt;
}
/* TD - far left and far right (corner) cells of title bar - useful for round corner tricks */
#MSOZoneCell_WebPartWPQ5 .ms-wpTdSpace
{
/* background-image:url(' someimagepath '); */
width:30px !important;
background-color:red;
}
/* web part check box */
#MSOZoneCell_WebPartWPQ5 .ms-WPHeaderCbxHidden
{
display:none;
}
/* === Web part background CSS === */
/* TD - background for all but title bar of web part */
#MSOZoneCell_WebPartWPQ5.s4-wpcell
{
background-color:lightgreen;
/* border-style:dashed; */
border-style:dashed;
border-width:5px;
}
/* TD - paging area (i.e. 1 - 5) */ #MSOZoneCell_WebPartWPQ5 .ms-bottompaging td { background-color:yellow !important; } /* hide the gray line above "add new" link */
#MSOZoneCell_WebPartWPQ5 .ms-partline
{
display:none;
}
/* selected (clicked) web part background */ #MSOZoneCell_WebPartWPQ5.s4-wpActive { background-color:fuchsia; border-color:red; /* border-style:dotted; */
}
/* === Column headings === */
/* color for sortable column headings */
#MSOZoneCell_WebPartWPQ5 .ms-vh-div a
{
color:red !important;
}
/* color for non-sortable column headings */
#MSOZoneCell_WebPartWPQ5 .ms-vh-div
{
color:red !important;
}
/* === List text CSS === */
/* item description text */
#MSOZoneCell_WebPartWPQ5 .ms-vb2,
#MSOZoneCell_WebPartWPQ5 .ms-vb-user a,
#MSOZoneCell_WebPartWPQ5 .ms-vb-title a
{
color:yellow !important;
font-size:12pt;
}
/* TR - alternating (#2,#4,#6...) row of web part */
#MSOZoneCell_WebPartWPQ5 .ms-alternating
{
background-color:navy;
}
</style>
<style type="text/css">
/* === Title bar CSS === */
/* TR - title bar for web part */
#MSOZoneCell_WebPartWPQ5 .ms-WPHeader
{
background-color:green;
}
/* H3 - Text in title bar of web part */
#MSOZoneCell_WebPartWPQ5 .ms-WPTitle a
{
color:white;
font-family:"Comic Sans MS";
font-size:24pt;
}
/* TD - far left and far right (corner) cells of title bar - useful for round corner tricks */
#MSOZoneCell_WebPartWPQ5 .ms-wpTdSpace
{
/* background-image:url(' someimagepath '); */
width:30px !important;
background-color:red;
}
/* web part check box */
#MSOZoneCell_WebPartWPQ5 .ms-WPHeaderCbxHidden
{
display:none;
}
/* === Web part background CSS === */
/* TD - background for all but title bar of web part */
#MSOZoneCell_WebPartWPQ5.s4-wpcell
{
background-color:lightgreen;
/* border-style:dashed; */
border-style:dashed;
border-width:5px;
}
/* TD - paging area (i.e. 1 - 5) */ #MSOZoneCell_WebPartWPQ5 .ms-bottompaging td { background-color:yellow !important; } /* hide the gray line above "add new" link */
#MSOZoneCell_WebPartWPQ5 .ms-partline
{
display:none;
}
/* selected (clicked) web part background */ #MSOZoneCell_WebPartWPQ5.s4-wpActive { background-color:fuchsia; border-color:red; /* border-style:dotted; */
}
/* === Column headings === */
/* color for sortable column headings */
#MSOZoneCell_WebPartWPQ5 .ms-vh-div a
{
color:red !important;
}
/* color for non-sortable column headings */
#MSOZoneCell_WebPartWPQ5 .ms-vh-div
{
color:red !important;
}
/* === List text CSS === */
/* item description text */
#MSOZoneCell_WebPartWPQ5 .ms-vb2,
#MSOZoneCell_WebPartWPQ5 .ms-vb-user a,
#MSOZoneCell_WebPartWPQ5 .ms-vb-title a
{
color:yellow !important;
font-size:12pt;
}
/* TR - alternating (#2,#4,#6...) row of web part */
#MSOZoneCell_WebPartWPQ5 .ms-alternating
{
background-color:navy;
}
</style>
No comments:
Post a Comment