You need to sign in to do that
Don't have an account?
Rakesh Chatty
i want to add color for <apex:outputField> label can someone suggest me how to change color to blue or red
i want to add color for <apex:outputField> label can someone suggest me how to change color to blue or red
apex:page standardController="contact" recordSetVar="contacts" > <apex:pageBlock title="Contacts List" > <style> .color{color:red;} </style> <apex:pageBlockSection title="contact" columns="2"> <apex:repeat value="{!contacts}" var="a"> <apex:outputField value="{! a.lastName}" /> <br/> <apex:outputtext value="{! a.lastName}" styleclass="color" /> <br/> </apex:repeat> </apex:pageBlock> </apex:page>
only Label should be red in color value should be in black as default.
thanks in adavance.
In general, we apply color like this
You can assign CSS classes dynamically based on the value using the styleClass attribute as well
Let me know if it helps