View Full Version : How to vertically strech a background image?
07-20-2005, 08:26 PM
How to vertically strech a background image?
than ks in advnaced
07-20-2005, 08:32 PM
Why would you want to do this with your HTML? I would use Photoshop or a design program to stretch my image and then make it my background....
07-20-2005, 08:38 PM
You can't, you would have to make it repeat or do what chump said.
07-22-2005, 02:42 AM
I wanted it so it fits all resolutions :(
07-22-2005, 02:56 AM
The most you can do is have it centered and have a background color that matches a dominant color in the image to make it appear like its resizing.
background-color:#000000 /*this should match a dominant color in your image*/
The shorthand version of that would be
background:#000000 url(yourimage.jpg) no-repeat fixed center;
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.