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
tanushree roy 6tanushree roy 6 

PageBlockSection Color

Hi,
I did this but i didnt get yellow color for my pageBlockSection..I am getting Black color
Can anyone help m out for this?


<apex:page sidebar="false" showHeader="false">
   <apex:pageBlock title="A Page Block area" >
       <apex:outputPanel styleClass="yellow" layout="block" >
            <apex:pageBlockSection title="Page Block Section" >"Page block section area"</apex:pageBlockSection>
       </apex:outputPanel>
        This is your new Page: Hello world
  </apex:pageBlock> 
</apex:page>

User-added image


 
Best Answer chosen by tanushree roy 6
Naveen DhanarajNaveen Dhanaraj
visit these links,
https://developer.salesforce.com/forums/?id=906F00000009gCOIAY
https://developer.salesforce.com/forums?id=906F000000098qMIAQ

If this helps Mark Best Answer

All Answers

Naveen DhanarajNaveen Dhanaraj
visit these links,
https://developer.salesforce.com/forums/?id=906F00000009gCOIAY
https://developer.salesforce.com/forums?id=906F000000098qMIAQ

If this helps Mark Best Answer
This was selected as the best answer
sfdcMonkey.comsfdcMonkey.com
hi tanushree roy

the post at the link below explains more about customizing the pageblock section header, text color, font size etc..,

https://developer.salesforce.com/forums?id=906F000000098qMIAQ

Hope this helps.
Thanks
Mark it Best answer if it hepls you :)
sfdcMonkey.comsfdcMonkey.com
and in your case try this
<apex:page sidebar="false" showHeader="false">
   <apex:pageBlock title="A Page Block area" >
       <style>
         body .bPageBlock .pbBody .yellow .pbSubheader{
                background-color:yellow;
            }
       </style>
       <apex:outputPanel styleClass="yellow" layout="block" >
            <apex:pageBlockSection title="Page Block Section" >"Page block section area"</apex:pageBlockSection>
       </apex:outputPanel>
        This is your new Page: Hello world
  </apex:pageBlock> 
</apex:page>
Mark it best answer of ot helps you
Thanks