| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Dr. Lucien Sanchez
Join Date: Mar 2003
Location: UK
Posts: 5,625
|
Scrollbars as page elements
What is the correct way for a browser to handle scrollbars? A layout I'm currently working on has a float:right div which sits in the correct place in all the browsers I've tested it with when the content is shorter than the browser page. If you see what I mean. When more content is added (or if it's viewed on a smaller res), the scrollbar appears and the div stays in the same place in all browsers except mozilla. In mozilla, the float:right div is pushed to the left by a distance the width of the scrollbar. So the floated div is being positioned in relation to the inside edge of the scrollbar, but everything else isn't - which buggers up the layout. What do you people know about this? Is there anyway to override this in mozilla? |
|
|
|
|
|
#2 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,236
|
It's been reported as a bug in Bugzilla - http://jerbaker.dhs.org/mozilla/voting/Bug72540.html The only attempt to override it I've seen is this Code:
but that only adds a scrollbar to the height of the content, not the window so is pretty much useless. That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
#5 (permalink) |
|
Dr. Lucien Sanchez
Join Date: Mar 2003
Location: UK
Posts: 5,625
|
Cheers Jamie. I've figured out a possible fix from your 100% idea. Putting 100% in the body didn't work (but made sense), so I measured the page height at my largest resolution - 1280x1024 - and put that instead: Code:
|
|
![]() |