Fix : CSS background image not appearing in IE 8 and lower versions

by Sumant 16. December 2011 11:34

Remember that older versions of Internet Explorer, older to IE 9, ignore the background clause if there is no leading space given to ‘no-repeat’.

For example:

(a) This will not work in IE 7 and IE 8

XML-Code: Wrong CSS
.next{background:url(images/next.png)no-repeat right center}

 

(b) This works in IE 7 and 8 as well

XML-Code: Right CSS
.next{background:url(images/next.png) no-repeat right center}

 

Share   

Tags: ,

CSS | Web Development

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

© 2008 Sumant Dubey

About this blog

Absolutely technical! The posts are about concepts, tricks, articles and links on technical subjects / problems which are not very obvious to understand / resolve. Purpose is to have this as the first-aid in the time of need.

RecentComments

Disclaimer

The opinions expressed on this website are my own personal opinions and do not represent my employer's view in anyway.