javierdl 2 Posted November 7, 2012 Report 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 Quote Link to post Share on other sites
javierdl 2 Posted November 7, 2012 Author Report 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 Quote Link to post Share on other sites
dsonesuk 921 Posted November 7, 2012 Report 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;} Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.