2

I need a div that has a lot of content and scrolls horizontally. The content (inner divs) has dropdown menus, and when the menus are opened they are supposed to render beyond the outer div's borders.

Like so:

enter image description here

But when i set

overflow-x: scroll;
overflow-y: visible;

my dropdowns aren't opened properly, they are contained within the wrapper div and I need to scroll down vertically to see them.

JSFiddle: https://jsfiddle.net/dk58t1ay/1/

It looks like overflow-x:scroll overrides overflow-y:visible. What can I do about it?

kurtgn
  • 8,140
  • 13
  • 55
  • 91

1 Answers1

1

You can do it via position: absolute to your .card, but you need to rewrite your styles for other elements.

https://jsfiddle.net/dk58t1ay/6/

P.S.
  • 15,970
  • 14
  • 62
  • 86
  • then this element stops scrolling horizontally. I need to sroll it with other elements. – kurtgn Nov 13 '16 at 09:21
  • It doesn't scroll anymore because you need to rewrite styles for your inner elements, they positioned a little differ now. – P.S. Nov 13 '16 at 09:44