Custom Section Color at Visual force page
Page Code <apex:page standardController="Account"> <script> function colorPageBlock(pageblock, color) { if (pageblock != null) pageblock.firstChild.style.cssText = "background-color: " + color + ";"; } </script> <apex:form > <apex:pageBlock title="My Content" mode="detail"> <apex:pageBlockSection id="redSection" title="My Content Section" columns="2"> <apex:inputField value="{!account.name}"/> <apex:inputField value="{!account.site}"/> <apex:inputField value="{!account.Fax}"/> <apex:inputField value="{!account.ParentID}"/> <script>colorPageBlock(document.getElementById("{!$Component.redSection}"), "red");</script...