Results 1 to 4 of 4

Thread: HTML trick?

  1. #1
    Join Date
    Nov 2002
    Location
    by the sea, in the north, on the west, below the white bears
    Posts
    151
    Thanks
    1
    Thanked 0 Times in 0 Posts

    HTML trick?

    hey this can be real easy, or it can get rough. easiest way to solve the issue at hand...is to simply provide the appropriate information. PROMPTLY.

    oh..guess i should tell y'all what the question is...spare some lives that way..

    I want the code for basic HTML that will let me set the background wallpaper so that it fits the window, and resizes as the window resizes. simply put, i have an image, that i dont want tiled, i want it to 'stretch' over the window. Text should be able to scroll withought the BG moving.
    IVE SEEN IT DONE. I DID IT IN HIGH SCHOOL (but i was high, so i canno remember howi dunnit)

    sigh

    i know it can be done *sobs*
    "Trust Yourself"

    Arin Ringwald - Student of Illustration and Design

    www.dabble.dream.cx


  2. Hide this ad by registering as a member
  3. #2
    Join Date
    Feb 2003
    Posts
    184
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <BODY BACKGROUND="image name" BGPROPERTIES="FIXED">



    It's better to live on your feet than to die on your knees.

  4. #3
    franz Guest
    Originally posted by Tanika
    <BODY BACKGROUND="image name" BGPROPERTIES="FIXED">
    Uhm, no.. 'bgproperties' is an ugly IE oddity, not valid markup. If you want to have a fixed background you'll want to use the 'background-attachment' CSS property.. that is not what he wants though (stretching)

  5. #4
    franz Guest

    Re: HTML trick?

    Originally posted by wazzo
    I want the code for basic HTML that will let me set the background wallpaper so that it fits the window, and resizes as the window resizes.
    Basic HTML? Impossible.

    You could do something like this.. works on CSS2-enabled, non-crappy browsers only:

    Quick hack:

    Code:
    <html>
    <head>
    <style>
    body {
    	margin: 0px;
    	padding: 0px;
    }
    #bg {
    	position: fixed;
    	top: 0px;
    	z-order: 1;
    	width:100%; height:100%;
    }
    #front {
    	position: absolute;
    	z-order: 2;
    	left:0px;
    	top:0px;
    }
    </style>
    </head>
    <body>
    <img src='image.jpg' id='bg' />
    <div id='front'>content</div>
    </body>
    </html>

Similar Threads

  1. SketchBook: HTML error 404
    By LoKal 2 in forum Sketchbooks
    Replies: 88
    Last Post: June 23rd, 2012, 01:27 PM
  2. Html and web design
    By Krane in forum Artist Lounge
    Replies: 20
    Last Post: April 11th, 2010, 11:16 PM
  3. Use of HTML
    By Sadr in forum Support
    Replies: 3
    Last Post: July 1st, 2007, 06:40 PM
  4. html help ???
    By Forge in forum Art Critique Center
    Replies: 4
    Last Post: July 17th, 2003, 09:11 AM

Members who have read this thread: 0

There are no members to list at the moment.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Designed by The Coldest Water, we build the coldest best water bottles, ice packs and best pillows.