fixed background in IE -any resolution

Posted by Krishna Priya on Stack Overflow See other posts from Stack Overflow or by Krishna Priya
Published on 2010-04-28T05:50:15Z Indexed on 2010/04/28 5:53 UTC
Read the original article Hit count: 179

Filed under:

Hi,

In my website, I have to use the background image that is fixed in any resolution, and should not change when control+scroll. I have used the following css.

/* CSS style / img.bg { / Set rules to fill background */ min-height: 100%; min-width: 1024px;

/* Set up proportionate scaling */ width: 100%; height: auto;

/* Set up positioning */ position: fixed; top: 0; left: 0; }

@media screen and (max-width: 1024px){ img.bg { left: 50%; margin-left: -512px; } }

This code working fine in Firefox, but background image is shrinking in IE browser. How to fix this issue.Anyone please help

© Stack Overflow or respective owner

Related posts about css