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
Sure@DreamSure@Dream 

CSS issue in Community site page

Hi All,

I am using the following style to update the background color of <apex:pageMessages>
.message
{
     background-color:AliceBlue;
}

Here message is the Salesforce style class for pageMessages. This is getting applied when i access the page from my Sandbox environment.
But when i access the page from community site, the background color is not getting changed.

This is happening only in IE. In Chrome its working fine.

Please help me with this.

If i add it to a static resource and access it, its not working in Chrome also.

Thanks.
Best Answer chosen by Sure@Dream
Sure@DreamSure@Dream
Hi Nehal,


Thanks for your reply.

I was able to solve this, by making setHeader="false".

Now the background-color is displaying as AliceBlue for pageMessages.

Thanks.

All Answers

NehalNehal (Salesforce Developers) 
Hi,

Please refer below link:

https://help.salesforce.com/HTViewHelpDoc?id=siteforce_communities_branding_creating_styles.htm&language=en_US

I hope this helps. Please mark this as a "Best Answer" if this has resolved your issue.
Sure@DreamSure@Dream
Hi Nehal,


Thanks for your reply.

I was able to solve this, by making setHeader="false".

Now the background-color is displaying as AliceBlue for pageMessages.

Thanks.
This was selected as the best answer