Hi there,

I have a little problem with my site, it's very new and i'm trying to get it all up together as best as I can, when viewing it in Firefox the sidebars, and the panels display a white->gray fade, but in IE, it just all shows white.

See what I mean here: www.bangbangtech.com

If anyone can offer any advice on this it would be most appreciated, or just to check and see if it's an issue with my browser alone then that would be useful, cheers.

BBT

Dani AI

Generated

A few common reasons a gradient image shows in Firefox but appears as plain white in Internet Explorer: an invalid background shorthand (IE can be stricter about parsing), an incorrect image URL (CSS urls are resolved relative to the stylesheet), or an earlier syntax error that causes the rule to be ignored. 's note about path resolution is relevant; the checklist below helps isolate the cause.

  • Confirm the stylesheet is loading and the image request succeeds (use IE's developer tools or a network trace).
  • Try a minimal test (only an HTML page with the background rule) so other CSS can't interfere.
  • Split the shorthand into separate properties while debugging (background-color, background-image, repeat, position). That prevents one malformed token from invalidating the whole declaration.
  • Verify the image URL by opening it directly in the browser and remember paths in url() are relative to the CSS file location, not the HTML.

Example patterns that are robust across browsers:

body {
  background-color: #cccccc;
  background-image: url('/path/to/gradient-image.jpg');
  background-repeat: repeat-x;
  background-position: top;
}

For modern browsers, prefer CSS gradients with vendor fallbacks and a solid-color fallback for older IE:

background-color: #cccccc;
background-image: -webkit-linear-gradient(top, #ffffff, #cccccc);
background-image: linear-gradient(to bottom, #ffffff, #cccccc);

For IE8 and older, use an image fallback or an IE-only stylesheet rather than relying on CSS3 gradients. If the problem persists after these checks, run the stylesheet through a validator and isolate the earliest rules in the file — an unrelated syntax error earlier in the CSS can prevent later rules from applying. This approach complements the path checks suggested earlier and helps prevent similar cross-browser surprises.

Recommended Answers

All 2 Replies

css maybe?

body{ background: url('images/grad_gray600.jpg')#cccccc repeat-x top;

try

body{ background: url('/wp-content/themes/premiumnews/images/grad_gray600.jpg')#cccccc repeat-x top;

IE may not follow relative link from the .css ??

css maybe?

body{ background: url('images/grad_gray600.jpg')#cccccc repeat-x top;

try

body{ background: url('/wp-content/themes/premiumnews/images/grad_gray600.jpg')#cccccc repeat-x top;

may not be able to follow relative link from the .css ??

Thanks for this, I'd obviously checked the code a few times but had failed to notice that there was no space between the /grad_gray600.jpg')and the #cccccc - popped it in and it seemed to solve the problem.

Thanks again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.