Author Topic: html question  (Read 7396 times)

0 Members and 1 Guest are viewing this topic.

Phelerex

  • Newbie
  • *
  • Posts: 11
    • View Profile
html question
« 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!
BOW TO ME, MY MINIONS-er-I mean, uh, here, have a cookie!
Millions of years of evolution and we humans eventually end up with duct tape.
Naw, it can't be heaven. Not enough twinkies.

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
html question
« Reply #1 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 - warning this is not W3 compliant... This code was written back before I was a bit more strict on that.)
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]