Background stretch tag in HTML

Sharky Forums


Results 1 to 2 of 2

Thread: Background stretch tag in HTML

  1. #1
    Reef Shark
    Join Date
    Dec 2000
    Posts
    359

    Question Background stretch tag in HTML

    I'd like to know how to have a background scale to fit the users screen resolution so my image doens't get cut off or repeated....the image itself is 1024x768 which seems to be a fairly popular resolution, but when users of other resolutions visit, how do i accomplish this?
    "I'm going to live forever or die trying."
    =-=-=-=-=-=-=-=-=-=-=-=-

  2. #2
    Expensive Sushi
    Join Date
    Jul 2003
    Location
    Eau Claire, WI
    Posts
    15
    You could use JavaScript to detect the users resolution and output the appropriate image.

    document.write('<img src="images/mypicture1024.jpg">');

    ...something like that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •