Q:

How to Set the BackGround color in Visualforce page

Iam using Standard controller in visualforce page. How to set the background colour or image. Please Give me Example

A:

Here is an example, how you can change the background colors of the input fields. Hope this will help.
<apex:page standardcontroller="Contact">
<style>
input[type=text] {
    width: 150px;
    display: block;
    margin-bottom: 10px;
    background-color: yellow;
}

</style>
 <apex:form >
   <apex:pageBlock title="Contact Create/Edit">
      <apex:pageBlockSection title="Contact Information">
       <apex:inputField value="{!contact.FirstName}"/>
      </apex:pageBlockSection>
   </apex:pageBlock>
  </apex:form>
</apex:page>

