function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
try adding this to your field
<apex:outputpanel style="color: red"></apex:outputpanel>
if this answers your question make this as solution
this is my code pls tell me how to give colour to name field box
<apex:page sidebar="false" standardController="student__c" extensions="student"><apex:relatedList list="courses" />
<apex:relatedList list="students"><apex:facet name="header">Titles can be overriden with facets</apex:facet></apex:relatedList><apex:image id="theImage" value="{!$Resource.tulips}" width="100" height="30"/><apex:sectionHeader description="student Edit" title="New student" help="http://www.google.co.in/" />
<apex:pageBlock >,<apex:form ><center>
<apex:commandbutton value="save" action="{!save}"/><apex:commandButton value="save&new"/><apex:commandButton value="cancel"/></center></apex:form><b><b><b><b><b><b><apex:tabPanel >
<apex:tab label="home" onclick="home"><apex:form ><apex:outputText >name</apex:outputText><apex:inputText value="{!name}"/><br/></apex:form></apex:tab><apex:tab label="Two">content for tab two</apex:tab></apex:tabPanel></b></b></b></b></b></b></apex:pageBlock><apex:pageBlock >,<apex:form ><center>
<apex:commandButton value="save" action="{!save}"/><apex:commandButton value="save&new"/><apex:commandButton value="cancel"/></center></apex:form></apex:pageBlock><style>*{background-color:white !important;background-image:none !important;color:black !important;font-style:italic !important;border:none!important;}</style></apex:page>
Then you can set the color of fields like HTML page.
Also you can use a CSS file to define the style of the whole page.
try adding this to your field
this is my code pls tell me how to give colour to name field box
<apex:page sidebar="false" standardController="student__c" extensions="student">
<apex:relatedList list="courses" />
<apex:relatedList list="students">
<apex:facet name="header">Titles can be overriden with facets</apex:facet>
</apex:relatedList>
<apex:image id="theImage" value="{!$Resource.tulips}" width="100" height="30"/>
<apex:sectionHeader description="student Edit" title="New student" help="http://www.google.co.in/" />
<apex:pageBlock >,<apex:form >
<center>
<apex:commandbutton value="save" action="{!save}"/>
<apex:commandButton value="save&new"/>
<apex:commandButton value="cancel"/>
</center>
</apex:form><b><b><b><b><b><b><apex:tabPanel >
<apex:tab label="home" onclick="home"><apex:form >
<apex:outputText >name</apex:outputText>
<apex:inputText value="{!name}"/><br/>
</apex:form></apex:tab>
<apex:tab label="Two">content for tab two</apex:tab>
</apex:tabPanel></b></b></b></b></b></b>
</apex:pageBlock>
<apex:pageBlock >,<apex:form >
<center>
<apex:commandButton value="save" action="{!save}"/>
<apex:commandButton value="save&new"/>
<apex:commandButton value="cancel"/>
</center>
</apex:form>
</apex:pageBlock>
<style>
*
{
background-color:white !important;
background-image:none !important;
color:black !important;
font-style:italic !important;
border:none!important;
}
</style>
</apex:page>