Changing the background color of a pageBlockSection. I can do this with a local style but not using a CSS file as a static resource (preferred.) I'm sure this is an obvious fix but can't seem to get it working with a static resource file. Any ideas ?
Using a static resource file:
.headerstyle2 body .bPageBlock .pbBody .yellow .pbSubheader{
background-color:yellow;
}
Using a local style
<style>
body .bPageBlock .pbBody .yellow .pbSubheader{
background-color:yellow;
}
</style>
Using an outputPanel (works) with the style:
....
<apex:stylesheet value="{!URLFOR($Resource.pdfcssresource, 'CREresource_CRE.css')}"/>
....
<apex:actionRegion >
<apex:outputPanel styleClass="yellow" layout="block">
<apex:pageBlockSection columns="1" id="section2a" title="Submission Summary Information (Pending Data Def -Reinstatements) " showHeader="true" rendered="{!NOT(submissionList.size == 0)}" >
</apex:pageBlockSection>
</apex:outputPanel>
</apex:actionRegion>
Using a StaticResource file (not working) as styleclass:
....
<apex:stylesheet value="{!URLFOR($Resource.pdfcssresource, 'CREresource_CRE.css')}"/>
....
<apex:actionRegion >
<apex:outputPanel styleClass="headerstyle2" layout="block">
<apex:pageBlockSection columns="1" id="section2a" title="Submission Summary Information (Pending Data Def -Reinstatements) " showHeader="true" rendered="{!NOT(submissionList.size == 0)}"
</apex:pageBlockSection>
</apex:outputPanel>
</apex:actionRegion>