Re: CSS Question
by "Tim Rivera" <lists(at)timrivera.com>
|
Date: |
Sat, 30 Aug 2003 22:14:38 -0400 |
To: |
"tonya sonnier" <tsonnier1(at)houston.rr.com>, <hwg-style(at)hwg.org> |
References: |
NEWPC |
|
todo: View
Thread,
Original
|
|
> I am working on tweaking a style sheet and cannot seem to get the
> background position to handle as expected. I need the background to
> start flush with the left side of the page (horizontal 0px) and down
> about 40px (vertical 40 px from the top left of page).
>
> Here is what I have put in my style sheet, and no matter what I do, the
> image starts at 0px 0px. I have looked at references in my books (all my
> Eric Meyer reference books) and various web info pages. Can't figure out
> what is missing to get the darned thing to move down vertically while
> staying against the left side of the page.
>
> The class is called in the <BODY> tag from an imported style sheet.
>
> .navbar {
> background : url(../images/navbar_ltblu_tile_139px.gif) repeat-y fixed
> 0px 40px;
> }
>
> Site use for this style sheet:
> http://www.cdc.gov/ncidod/aip/index.html
Actually, the background image *is* initially flush left and 40px down.
However, because you have repeat-y, the image is repeated all the way down the
page, then starts at the top again.
Tim
____________________________________________________________
http://webdesign.meetup.com/ See you at the next meetup!
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA