I have a div to hide content with overflow-x and display ( visible ) content with overflow-y .
Unfortunately, it does not work as I would like. It adds vertical scrollbars - I assume this is because overflow-x and overflow-y do not work together.
As far as I know, if one overflow is set to hidden, the other becomes automatic.
Is there any other way around this? So I can have overflow hidden horizontally and displayed (without scrolling) vertically?
Just like that, there is no confusion here to explain a little more: http://jsfiddle.net/kwnQk/
change
Here is the actual problem I'm experiencing: http://jsfiddle.net/kwnQk/1/
I have a select box created from div and jQuery that ends up in the height of the div, causing it to add scrollbars.
Itโs a shame that the overflow function works the way it does, because the overflow-x div must be hidden, making the overflow-y div auto.
change 2
Please check out this new JSFiddle to show why I need overflow: http://jsfiddle.net/kwnQk/3/
It also consists of sliders that must be set to a specific width. And they cannot take the entire height of the page, so I also need to limit their height.
source share