css horizontal scroll

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

css horizontal scroll

Post 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.
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

overflow-x: hidden;

But it's not supported by some browsers. Quite a few actually... :?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: css horizontal scroll

Post 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 ;)
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Post 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.
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

mickd wrote: another question, is there a reason why Mozilla Firefox doesnt display <hr />?
Yes it does.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
Post Reply