views:

362

answers:

3

See this pastie in firefox. When resizing the browser window horizontally, then when the yellow area gets hidden a bit I want a horizontal scrollbar to appear. In Safari this code works fine. How would you style this for firefox?

I am using overflow:auto; I only want the scrollbar to appear when it makes sense, I don't want to see it all the time

A: 

The best to use would be overflow: auto; this will add a scroll bar only when needed.

Richard
+1  A: 

Firefox doesn't recognize overflow-x and overflow-y.

Instead use overflow:-moz-scrollbars-horizontal; or overflow:-moz-scrollbars-vertical;

This is a Mozilla Firefox specific hack so none of the other browsers should be affected.

Darko Z
A: 

Specify some width and then "overflow: scroll;"

presario