Jump to content

Backgrounds,can they Stretch?


D-Z-ST

Recommended Posts

You cannot stretch a background, but you can make an extra-large background. If you make an image that's, say, 1600 pixels wide, you can set it as the background and have it centered. That way, if the user has a resolution that is 800 pixels wide, he only sees the center 800 pixels, but if he has 1600 pixels wide then it will show the whole thing.

<body style="background-image: url('background.jpg'); background-repeat: no-repeat; background-attachment: fixed; background-position: center center;">

Link to comment
Share on other sites

A lot of people reference that page. That's not a "background image", all that is is a div floating at the bottom level. That's not an image referenced by a background-image property, it's just a normal <img> tag.

Link to comment
Share on other sites

Still, in all practicality, it's a stretched background image, and the only way to do so as of now. :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...