+ Start a Discussion
Anish Mahadik 1Anish Mahadik 1 

How to apply style to pageblock section in VF page

Hi All,
I am facing difficulty while applying style to pageblocksection.
I tried to used style on pageblocksection but it Pageblocksection color changedidn't worked.

.custom1 { background-color: red !important; }
.custom3 { background-color: green !important; }
<apex:outputPanel layout="block" styleClass="custom1"> <apex:pageBlockSection title="Section 1"> Content 1 </apex:pageBlockSection>
Please see the attached file where i want to apply a style of blue color background to the highted yellow color portion.

Thanks in advance.
PriyaPriya (Salesforce Developers) 

Hey Anish,

Kindly refer this link for your requirement :-



Kindly mark it as the best answer if it helps.


Priya Ranjan