|
I know you can use javascript to obtain the window size and work accordingly, but CSS3 does have a solution.
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
And that works great! But to does depend on original size and the ratios. It tries to keep the ratios the same.
Last edited by sunfighter; 07-04-2011 at 04:35 AM..
|