TheBnl Posted July 6, 2011 Share Posted July 6, 2011 Hello,I'm trying to make a background image which stretches first in height and when the browsers width gets to big it wil start stretching in width, but not with distortion you'll get by setting the width and height 100%. Thanks! Link to comment Share on other sites More sharing options...
TheBnl Posted July 6, 2011 Author Share Posted July 6, 2011 I already fixed it! body { background: #000 url(bg1.jpg) center center fixed no-repeat; -moz-background-size: cover; background-size: cover;} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.