+ Start a Discussion
Carl MahCarl Mah 

Change Background Colour of VF Page embedded in Standard Page Layout

Hi Guys
Within my standard page layout I have embedded the the below VF page.
I'd like to change the background colour of that VF page to #52aec9

I have tried the below and it does not work. Any idea where I am going wrong? (Please note I'm a novice on VF)
Thanks in advance,

<apex:page standardcontroller="MBO__c">
 
<style>
body {
   background-color: #52aec9;
}
</style>

<body>
 
<centre>
<apex:outputText value="NOTE : Please add as much intelligence / information as possible to the description of the Value Add so that it is clear
what activity has taken place, with who and how long this took to deliver." style="font-size:12px"/>
<br></br>
</centre>
<br></br>
 
</body>
 </apex:page>
 
Best Answer chosen by Carl Mah
Vivek DVivek D
Set the standardStyleSheet attribute to false and try or/and add important in css property 
background-color: #52AEC9 !important;

 

All Answers

Vivek DVivek D
Set the standardStyleSheet attribute to false and try or/and add important in css property 
background-color: #52AEC9 !important;

 
This was selected as the best answer
Carl MahCarl Mah
Hi Vivek 
Sorry, I dont think I understand (novice here) - can you elaborate please?
 
Carl MahCarl Mah
It's working now! 
Thank you for the quick response! :)