function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chenna1234chenna1234 

How to change background colorof an pageblock or in static resource

Hi All,

 

<apex:image url="{!$Resource.Google}" width="180" height="180"/>

 

 

Thanks,

Chenna--India

Best Answer chosen by Admin (Salesforce Developers) 
Raj.ax1558Raj.ax1558

<apex:page  standardStylesheets="false" >

.bPageBlock{

background-color:#0065B1;        //for color in a background

 background: url({!URLFOR($Resource.Images, 'images/head-bg-rou.jpg')})        //for image in a background

 

<apex:pageblock>

</apex:pageblock>

}

 

 

we overwrite the standard CSS.

 

 

mark this as solution for others to get it easily