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
MrithulaMrithula 

how to set the background color as white

hi all,

 

 

 

how to set the background color as white in pageblock

APathakAPathak

maindetail

<apex:page mode="maindetail ">

 

Please try the above code.

Edwin VijayEdwin Vijay

try using this

 

<apex:pageblock style="background-color:white !important;">

 

SFDC_VikashSFDC_Vikash

Hi, 

 

There are two ways for this.

 

1. 

<apex:pageBlock mode="mainDetail">

 

2. For this you have to exercise with firebug to find out the css that has been been applied to pageblock and have to override that. For a try you can use this as it is working for me :

 

<style>
    body .individualPalette .secondaryPalette.bPageBlock{
      background-color : white;      
    }
</style>

 This will only set background color as white, to remove the border-color also use folowing :

 

<style>
    body .individualPalette .secondaryPalette.bPageBlock{
      background-color : white;
      border-color:white;
    }
</style>