Page 1 of 1

css horizontal scroll

Posted: Wed Nov 02, 2005 2:19 am
by mickd
is it possible to prevent horizontal scroll from coming out and only the vertical scroll bar? overflow: auto; overflow: scroll; makes horizontal ones aswell.

thanks.

Posted: Wed Nov 02, 2005 6:31 am
by foobar
overflow-x: hidden;

But it's not supported by some browsers. Quite a few actually... :?

Re: css horizontal scroll

Posted: Wed Nov 02, 2005 7:14 am
by Chris Corbyn
mickd wrote:is it possible to prevent horizontal scroll from coming out and only the vertical scroll bar? overflow: auto; overflow: scroll; makes horizontal ones aswell.

thanks.
I think that *doesn't* happen in Firefox by the way -- It only renders scrollabars where they are required ;)

Posted: Wed Nov 02, 2005 7:17 am
by mickd
yeah, i figured out why they were coming out :? it was because i had some horizontal rules.

another question, is there a reason why Mozilla Firefox doesnt display <hr />?

thanks for your replies.

Posted: Wed Nov 02, 2005 7:51 am
by foobar
mickd wrote: another question, is there a reason why Mozilla Firefox doesnt display <hr />?
Yes it does.

Posted: Wed Nov 02, 2005 11:18 am
by Chris Corbyn
mickd wrote:yeah, i figured out why they were coming out :? it was because i had some horizontal rules.

another question, is there a reason why Mozilla Firefox doesnt display <hr />?

thanks for your replies.
If it's in the W3 specs, you can pretty much assume that Firefox does it right. they don't *always* do it right though.

I tend to find it's best to develop for FF and then then test in other browsers since FF usually meets the specs.