Proxy | Free Ringtones | Loans | Credit Cards | Internet Advertising
stretch a fixed background [Archive] - PCMech Forums

PDA

View Full Version : stretch a fixed background


Ace
11-01-2003, 05:49 PM
anyhow right now i'm trying to make a background on my website fixed and stretched so it will fit in any resolution. keep in mind i'm not that much of a html/java/css guy =P

googled it up a bit, and from what i read you can't do stretch in html. i found the javascript code for stretch, but the background isn't fixed. here's the link to the JS code:

http://www.webreference.com/dhtml/diner/bgresize/bgresize3.html

any help would be much appreciated. thanks =)

mairving
11-02-2003, 07:58 AM
The short answer is that you can't stretch it. It does though depend greatly on the image. If it is a picture with a lot of detail then there isn't much you can do besides putting it in a fixed resolution table. If it is a background with repeating patterns then it would be no problem.

vizun
11-02-2003, 09:48 PM
yeah, if its a pattern no prob, set it as the background, but otherwise, you could create the same image in like... 3 or 4 resolutions, use some javascript to check the reso. of the user, and set the image. There are a few other ways, but if you dont know to much about "webdesign" they would be hard to explain, and probly wouldnt work to well.