+ 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