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
san k.ax737san k.ax737 

How to add HTML tag for background color in perticular section?

hey

    i'm creating a simple page which has section and space for buttons, i wanna add custom background color to section .. how can i proceed to dis requirement?.....plz help  me fast...

 

 

San

Best Answer chosen by Admin (Salesforce Developers) 
Edwin VijayEdwin Vijay

Hi..

 

Try using inline style.. for ex

 

 

<apex:pageblock style="background-color:red;">

 

 

or use,

 

<style>
.pbBody
{
   background-color:red !important;
}
</style>

 

Check this article for more information http://www.forcetree.com/2010/06/debugging-visualforce-pages-with-custom.html

 

 

Hope it helps!!!

All Answers

Edwin VijayEdwin Vijay

Hi..

 

Try using inline style.. for ex

 

 

<apex:pageblock style="background-color:red;">

 

 

or use,

 

<style>
.pbBody
{
   background-color:red !important;
}
</style>

 

Check this article for more information http://www.forcetree.com/2010/06/debugging-visualforce-pages-with-custom.html

 

 

Hope it helps!!!

This was selected as the best answer
san k.ax737san k.ax737

 first throwing and error msg of :not supported:

 

second Code is working in my favor.......thanx....

 

 

 

santosh