Re: Stretching a Background

by "Scott Piegdon" <scott(at)hyperwebdesign.com>

 Date:  Thu, 1 Oct 1998 17:08:34 -0500
 To:  "Nick Papageorge" <104061.616(at)compuserve.com>
 Cc:  "Critique List" <hwg-critique(at)hwg.org>
  todo: View Thread, Original
You can't stretch a background to my knowledge, but you can "FIX" a
background. Use a body tag like this:

<body background="images/bricks.jpg"
    style="background-attachment: fixed; background-repeat: no-repeat;
background-position: center">

and it will take in this example bricks.jpg, center it top to bottom and
left to right, and then have it basically stuck there!  The rest of the page
will load and seem to float above the graphic

background-attachment: scroll        (default)
background-attachment: fixed

background-repeat: repeat              (default)
background-repeat: repeat-x
background-repeat: repeat-y
background-repeat: no-repeat

background-position: right bottom
background-position: left top

You can just not put the default ones if that is what you want.  But also
keep in mind, that I think the background style tag is a 4.0 feature, and
may only work with IE.

Scott Piegdon
www.hyperwebdesign.com
Internet Developer
SBN Level II Member
Member HTML Writers Guild

HTML: hwg-critique mailing list archives, maintained by Webmaster @ IWA