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
iainfarqiainfarq 

Pageblocks sometimes appear in strange bright colours within our application

Pageblocks sometimes appear in strange bright colours within our application -our stylesheets do not include the colours displayed, and everything seems to link back to salesforce scripts.

 

This only started happening recently, and affects different pages/pageblocks on different orgs with identical code.

 

Is anyone else experiencing a similar problem?  This is one of the more flamboyant display problems we've come across ;)

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
iainfarqiainfarq
So we implemented the Salesforce Rep's advice and it worked out. By placing

<style>
Custom68Tab .secondaryPalette,.individualPalette .Custom68Block .secondaryPalette {background-color: transparent} </style>

in the page itself (we store our styles in components to ensure they override standard salesforce styles - using <apex:includeScript> may not work), we were able to override the offending salesforce styles.

@  jonathan rico, this doesn't solve your problem - we're having that problem too and have created a thread here :

http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=20094#M20094

All Answers

ShikibuShikibu
There's probably some broken html on your page. Try an xml validator.
iainfarqiainfarq
No the HTML is fine - it was working up until a couple of weeks ago (for about 4 months)
jonathanrico.jonathanrico.

Hello,

 

I'm having this same issue. Are you getting some bright green colors as well?

 

I created a thread previously but no answers :(

 

http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=19909#M19909

Message Edited by jonathan rico on 01-14-2010 12:52 AM
ShikibuShikibu
Hey both of you—post is too vague. Can you post source? (Don't forget to use code block—looks like a clipboard with an "C" over it). If using code block mutilates your source code, try Firefox instead. These Salesforce discussion forums are busted with regard to Safari, perhaps other browsers too. Complain to Salesforce!
iainfarqiainfarq

@ jonathan rico

 

We've since got a response from salesforce support which (hopefully) fixes the issue for us:

 

Initially we received the response:

-----------------------
 The following styles "individualPalette" & "Custom68Block" are causing the red background.
<div class="individualPalette">
<div class="Custom68Block">
To remove the red, remove the reference to the custom stylesheet <link class="user" type="text/css" rel="stylesheet" href="/sCSS/17.0/sprites/1262810577000/Theme2/00DA0000000ICsN/005A0000000McMh/dCustom0.css">
-----------------------

Our response to this was that these were salesforce stylesheets and we had no access to them, however salesforce reply cleared things up:

-----------------------
<style>
Custom68Tab .secondaryPalette,.individualPalette .Custom68Block .secondaryPalette {background-color: transparent} </style>

This is caused by the css hierarchy: your css is called as component of the general template (where you have 5 different css component), while the default one is called with the custom object from the system, so the hierarchy of the default come before your css, that's why you had the error. By calling the style directly in the page your css overwrite the default one so it display it right.
-----------------------

 

Hope this helps!

iainfarqiainfarq
So we implemented the Salesforce Rep's advice and it worked out. By placing

<style>
Custom68Tab .secondaryPalette,.individualPalette .Custom68Block .secondaryPalette {background-color: transparent} </style>

in the page itself (we store our styles in components to ensure they override standard salesforce styles - using <apex:includeScript> may not work), we were able to override the offending salesforce styles.

@  jonathan rico, this doesn't solve your problem - we're having that problem too and have created a thread here :

http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=20094#M20094
This was selected as the best answer
jonathanrico.jonathanrico.

Hey, thanks for the response. 

 

I'm hoping they fix this soon because it is messing up the styles in some of my vf pages. 

 

iainfarqiainfarq

More info on the pallette if you need it:


http://wiki.developerforce.com/index.php/Using_the_Salesforce_CSS_in_Your_Apps#Using_Palettes
 

Message Edited by iainfarq on 01-15-2010 06:03 AM