...

View Full Version : showing scrollbars regardless?



SDP2006
02-28-2004, 01:57 PM
I'm using a divular layout and when the scrollbar does not show, when the page is not long enough to need to show, it shows fine, but when it is long enough for scrollbars, it shows up and it makes my div's ''Bounce'' around. It's not 'killing me' but I don't really like it bouncing around. Is there a way where I can show the scrollbars, or at least an inactive one, at all times?

IE does this, but I'm using Firefox.

Thanks

mindlessLemming
02-28-2004, 02:11 PM
Don't be offended by this, but you have tried adding overflow:scroll; to the elements in question, haven't you?

:rolleyes:
Andrew.

SDP2006
02-28-2004, 02:22 PM
No, add that to the body tag?

SDP2006
02-28-2004, 02:28 PM
I think I was unclear

In this first screenshot (firefox) no scrollbar is necessary
http://stevie.f2o.org/images/no.PNG

In this second screenshot (ie) no scrollbar is necessary, but an incative one shows up.
http://stevie.f2o.org/images/noie.PNG

How can I make my page to where in Firefox, the inactive scrollbar shows up regardless like IE so the *bouncing* will not occur?

Thanks

mindlessLemming
02-28-2004, 02:29 PM
Post your html/css and I'll tell you which elements...but do it soon, its 1am and Im about to crash.

mindlessLemming
02-28-2004, 02:30 PM
aaahhhh, that old chestnut again...
Sorry man, no hope. It's built into the browser to do that.
I ran into the same prob when I made my site.

*edit: but adding overflow:scroll to the body is worth a try none the less...

me'
02-28-2004, 08:41 PM
Surely this is hardcoded into Firefox... if you want it to appear on your machine then add this to your user.css file:
scrollbar { display: block !important }

mindlessLemming
02-29-2004, 12:14 AM
Originally posted by me'
if you want it to appear on your machine then add this to your user.css file:

That's not going to help him out in the big wide web though....
He can't change other user's custom styles. :(

Paul Jr
02-29-2004, 02:42 AM
Why not set the height of the page to like, one or two percent over one hundred? There shouldn't be much scrolling, and you'll have your scrollbar.

SDP2006
02-29-2004, 02:18 PM
body { height: 96.10%; }
gives it a scrollbar that doesn't scroll.

Thanks, Paul. :thumbsup:

mindlessLemming
03-01-2004, 03:26 AM
Originally posted by SDP2006
body { height: 96.10%; }
gives it a scrollbar that doesn't scroll.

Thanks, Paul. :thumbsup:

But what happens when the content extends past that point? Or if the user enlarges their font size? Does it break? Or does it scroll?

me'
03-01-2004, 11:04 AM
min-height?

mindlessLemming
03-01-2004, 11:29 AM
Originally posted by me'
min-height?
Of course! Brilliant and obvious David :D
Thankyou Mozilla.org for your (*mostly) standards compliant products!

* - Not 100% positive, don't want to get flamed just in case

me'
03-01-2004, 11:32 AM
Originally posted by mindlessLemming
Of course! Brilliant and obvious David :D Lol, thanks. But don't forget to hack down for IE:
html body { height: 96.1% }
html>body { min-height: 96.1%; height: auto }Or pick your favourite hack (_height, * html body etc)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum