[thelist] CSS background-position property not working

Sarah poohbear at designshift.com
Wed Feb 26 15:12:01 CST 2003


>alternately, you could do mostly what you were before, instead applying
>the background image to a div nested within the body (directly after
>the tag)-- something like:
>
>body
>{ font-family: sans-serif;
>   font-size: 90%;
>   background-color: #ff9900;
>   color: white;
>}
>
>#bg
>{
>   width:100%;
>   margin-left:100px;
>   background-image: url("images/stripes.gif");
>}
>
>so you'll get your orange band and the rest of the page (at any width)
>will be filled with the background image.


I had thought of doing this, but then the div, being set to 100% width,
makes a horizontal scrollbar appear, which I wanted to avoid.

Sarah




More information about the thelist mailing list