My background image is working properly in every browser except IE.
It doesn't show at all.
body {background:#eeede6 url(images/background.png) no-repeat;}
Can anyone help me with this?
| SitePoint Sponsor |
My background image is working properly in every browser except IE.
It doesn't show at all.
body {background:#eeede6 url(images/background.png) no-repeat;}
Can anyone help me with this?


Hi, Welcome to Sitepoint
We'd need a little more to go on that that snippet as it appears to be ok so could be something else at fault. Do you have a link to the problem concerned?
A common bug is where you don't leave a space after the closing url bracket and IE ignores the rule.
e.g.
However the snippet you posted does have a gap and therefore should be ok.Code:body {background:#eeede6 url(images/background.png)no-repeat;}
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge
Thank you for your response
i solved it. I just needed to save image as an 8-bit, it was 24-bit.
Thanks anyway!


Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form
Try your hand at the new JavaScript Challenge!
If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.


Unless you are talking about transparent images in IE6 then 24 bit images would be ok. Or perhaps you are not using a doctype and then all versions of IE will revert to behave much like ie5 and not understand transparency in png images (among many other bad things).![]()
www.pmob.co.uk CSS FAQ 3 col demo Read My CSS Articles
Ultimate CSS Reference
Check out SitePoint's latest JavaScript challenge
Aha, thanks, i know what you're talking about, i hate IE![]()
Bookmarks