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
sreenivas_cippyalisreenivas_cippyali 

how to change pageblock section style using css

Niket SFNiket SF

 <style type="text/css">
        /* Color for the title bar */
        .bPageBlock .pbHeader
        {
            background-color:#FF0000;
        }
        .bPageBlock .pbBody
        {
            /* Color for the pageblock background */
            background-color:#FFFFFF;
        }
        .bPageBlock
        {
            /* Custom background image at the bottom of the pageblock
               which you may need to edit.      
            background-image:url(your_new_background_image);*/
        }
    </style>

 

 

Try to use this one and update CSS as per your requirement.

 

Thank you

Niket

Swarup SahaSwarup Saha
I have another requirement. I want to change the style for a particular pageBlock. How can This be done? 
I have attached an image where I want No 2 to be of red color and No 1 to be as it is (green).
Any clue how can I do that?

Change border-color of PageBlock