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
BigRobBigRob 

How do I change the background color for a pageblock

When I create a pageblock using <apex:pageBlock> the background color is white.

 

Is there any way to change the background color?

BigRobBigRob

Found a partial solution

<style type="text/css">
.bPageBlock .pbBody { background-color:#EEEEEE; }
</style>

 

The bottom of the page block is still white though

Cool_DevloperCool_Devloper

Did you try embedding the PageBlock in a Table and then setting the background color in the table?

I have not tried it though, just thinking of options;)

Cool_D