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
Mandy08Mandy08 

CMSForce page color

Can I change the background color on a CMSForce template? Not just the table color - the whole background?

Thanks

 

A

Best Answer chosen by Admin (Salesforce Developers) 
David VPDavid VP

Include this just below the <apex:page ...> tag :

 

<style type="text/css">
body {
background-color:#000000;
}
</style>

 

 

 

 

All Answers

David VPDavid VP

Hi Mandy,

 

Sure you can : In the visualforce of your page template, just set the body background to any color you'd like. If done in CSS this would be something like :

 

body{
background-color:#000000;
}
Mandy08Mandy08

I'm not using CSS and your code does not quite look like standard html, I see no starting html tags

so I am a little confused.

David VPDavid VP

Include this just below the <apex:page ...> tag :

 

<style type="text/css">
body {
background-color:#000000;
}
</style>

 

 

 

 

This was selected as the best answer