[SalesForce] How to i apply css style for pageBlock title? can i use image as pageblock title

I want to apply some styles to PageBlock title like changing font color, style and background color. and Can I assign image or logo as pageblock title.. Give me some working example.

this is my code:
this is my code

This is the output
this is my output

I want apply same style effects to the title also..

Best Answer

You may one to try using apex:facet to override pageBlock Title

 <apex:pageBlock  >
      <apex:facet name="header">
          <apex:image url="{!URLFOR($Resource.SiteSamples, 'img/force_logo.gif')}"/>
         </apex:facet>
        <apex:pageBlockButtons >
       </apex:pageBlockButtons>
     <apex:pageBlockSection title="My Content Section" columns="2">
  </apex:pageBlockSection>
 </apex:pageBlock>
Related Topic