javierdl Posted November 7, 2012 Share Posted November 7, 2012 (edited) I need this to work for IE8 though (WinXP). I have tried this: div{background:url(image location) no-repeat;background-size:200% 200px;} Not working.Could it be browser related? Btw, it doesn't matter if the image deforms. Thanks guys! JDL Edited November 7, 2012 by JavierDL Link to comment Share on other sites More sharing options...
javierdl Posted November 7, 2012 Author Share Posted November 7, 2012 Bad news.According to this page: http://www.quirksmode.org/css/background.html#sizeIE8 does not handle this atribute Can one get this done with Javascript then? If so what would be the code? Thanks guys, JDL Link to comment Share on other sites More sharing options...
dsonesuk Posted November 7, 2012 Share Posted November 7, 2012 The only way to get it to work in older IE version below IE9, is use img element div{/*background:url(image location) no-repeat;background-size:200% 200px;*/ position:relative;} div img {position: absolute; top:0; left:0; bottom:0; right:0; z-index:0;} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now