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
zjlgzjlg 

The CSS is not useful in my salesforce system, pls come in and give me an idea

The part of codes are my visualforce page code:


<apex:page controller="client_Controller"  tabStyle="account">


<style>


  .errorMessage{ color: red; font-weight: strong;}


 </style>


    <apex:messages styleClass="errorMessage"/> //this code is for display the error messages,and i

 

wanna make the font color red


</apex:page>

the result is the font color is still black,why?can you tell me how??

 

Best Answer chosen by Admin (Salesforce Developers) 
SFDC_EvolveSFDC_Evolve

Try this .  . . 

 

<Center><font color="red" style="font-weight:bold"><apex:messages /></font></center>

All Answers

SFDC_EvolveSFDC_Evolve

Hi Zjig,

 

As if now.. I can suggest you to reomve the  .(Dot)  from the class Name If you are not using the Nesting  CSS... . and You can use the Firbug to Inspect the element .  It will give you clear understanding of the element .

 

 

zjlgzjlg

Dear Evolve,

 

Can you give me a CSS sample? I just wonder how to make it effectual...

SFDC_EvolveSFDC_Evolve

Try this .  . . 

 

<Center><font color="red" style="font-weight:bold"><apex:messages /></font></center>

This was selected as the best answer
zjlgzjlg

Thank you so much, actually,my code is right and your code is right too, thanks again!!