Forum Moderators: not2easy
Original -
<p>© Copyright 2001 - 2007 XYZ-Widget.com</p>
G Cache -
<p>© Copyright 2001 - 2007 XYZ-<b style="color:black;background-color:#ffff66">Widget</b>.com</p>
Is this normal behaviour or have we boobed somewhere?
Seems it's my gradient background that's missing from the cache and is making things look clunky.
Here's the part in the stylesheet, anything obvious missing?
html, body {
background-color: #12346B;
background-image: url(/images/body_bg.jpg);
background-repeat: repeat-x;
background-position: top;
text-align: center;
}
html and body elements - although one would naturally cover the other. You should really split the rule and apply the background to just the body: html, body {
background-color: #12346B;
text-align: center;
}
body {
background-image: url(/images/body_bg.jpg);
background-repeat: repeat-x;
background-position: top;
} Or you may not need to apply the rules to
html at all, so also try applying everything just to the body element. The second potential pitfall with background images is that sometimes the path to the image doesn't work out of context (ie. via the cache), however usually the
base element added by Google fixes this. Thirdly, the extra markup added by Google to the top of the cached page your pushes the page in the cache into quirks mode, rather than standards-compliance mode (if you are using a full doctype [webmasterworld.com]). This can change how the CSS is handled [webmasterworld.com].
The fourth issue, and the most likely one, is if you are using anti-hotlink protection by checking the referrer on your site when serving images. The referrer would be for an URL on Google's site, not yours, so the referer check may be blocking the display of the image. Check your logs to see if you get a 403 error for the graphic to be sure.