Xepher.Net Forums

Community => Knowhow Trading Post => Topic started by: Phelerex on September 07, 2005, 01:11:57 am

Title: html question
Post by: Phelerex on September 07, 2005, 01:11:57 am
:/ i was wondering if there was a way to make a background image fit the screen all the time. if so, how would you do this? it would really suck if i got it to fit my screen, then have it not fit someone else's.
thank you!
Title: html question
Post by: Databits on September 07, 2005, 07:03:42 am
You'd probably need to utalize javascript to accomplish this. As I don't believe there is a stretch option in either HTML, XHTML, or CSS. I could be wrong, but I'm pretty sure there isn't.

Thus, it's usually a good idea anyways to pick a background that can be repeated on an axis or tiled. I have a background that fades into the color black. It always fits the window simply because it repeats in the vertical direction (y). (my site (http://www.databits.cc/) - warning this is not W3 compliant... This code was written back before I was a bit more strict on that.)