| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
volkswagen yellow & gold
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
|
css background moving with scroll bars
ok. background set using css: body { margin: 0; padding: 0; background-color: #000; background-image: url(../images/bkg.jpg); background-position: center; background-repeat: no-repeat; font-family: verdana, arial, helvetica, sans-serif; } if scroll bars are needed on that frame then the background image shifts about meaning that you can't centre align anything with the top frame. mozilla does the same but slightly differently. http://dev.flark.net/abovethesky/ any pointers? cheers chaps. |
|
|
|
|
|
#2 (permalink) |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
|
Have you considered ditching a frames-based layout and going with a holistic layout? (one where a scrollbar will shift the entire page rather than just sections). If not, you should. If you have, you should consider it again. |
|
|
|
#3 (permalink) |
|
volkswagen yellow & gold
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
|
turn it in bill, its not a frames argument. i've changed it now, by placing a div around the whole page and putting the image as a background to that div. not ideal. work in progress... |
|
|
|
#5 (permalink) |
|
volkswagen yellow & gold
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
|
even if it was not framed the issue would be the same. an element aligned centre in the page will not align with a background image positioned by css as this behaves differently on different browsers depending on the presence of browser scrollbars. you were not pointing in the right direction, you were getting on your high goat about frames. sometimes technical restrictions, client requirements and design require frames to produce a site that fits the brief. |
|
|
|
#9 (permalink) |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,967
|
Just out of interest, what are the bits that require the site to be done in frames? Maybe there's some way around it that would keep the site intact and the client (and more importantly - me ...and remember, I'm only trying to help you , Ro-land. |
|
|
|
#15 (permalink) | |
|
Dr. Lucien Sanchez
Join Date: Mar 2003
Location: UK
Posts: 5,572
|
Quote:
I arsed about with scrollbars in mozilla a while back > here I think you could fix it with set heights and so on, but a user's screen resolution might spaz it up. Try ignoring it. |
|
|
|
|
#18 (permalink) | |
|
volkswagen yellow & gold
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
|
http://bugzilla.mozilla.org/show_bug.cgi?id=72540 Quote:
have to wait for css3. how long? beuller? beuller? |
|
|
![]() |