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

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?


Found a partial solution

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


The bottom of the page block is still white though


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;)