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
Deepak ChouhanDeepak Chouhan 

background image on VF page

hello,
i am using this code for backgrond image or color but both aren't support in vf page.
this are appear on the sidebar and showheader section.

*{                 <!------------| page global setting |---------------->
    margin:0px;
    padding:0px;
    background-color:#0f0;   
    //background-image:url('{!$Resource.bg1img}');

what will be the solution.
Best Answer chosen by Deepak Chouhan
Vamsi KrishnaVamsi Krishna
Deepak,
i just tried this in my dev org and it works fine. you should set showHeader="false" and then apply the css styles on the body ..

<apex:page sidebar="false" showHeader="false" >
  <style type="text/css">
        body { background-color: green; }
    </style>
</apex:page>

All Answers

Vamsi KrishnaVamsi Krishna
Deepak,
i just tried this in my dev org and it works fine. you should set showHeader="false" and then apply the css styles on the body ..

<apex:page sidebar="false" showHeader="false" >
  <style type="text/css">
        body { background-color: green; }
    </style>
</apex:page>
This was selected as the best answer
Ramu_SFDCRamu_SFDC
Follow the instructions as explained in the post below

https://developer.salesforce.com/forums/ForumsMain?id=906F000000098poIAA