This codepen demonstrates the issue. Notice the red block .popup
is cut off at the top.
It is getting chopped by the top of it's grandparent div, #hideExtraWidth
.
I need to hide extra width (overflow-x) because of what I have in my actual implementation (JS changing the #wide
div to create a carousel affect), but it also seems to be hiding the extra height (overflow-y)... even though I have this:
overflow-x: hidden;
overflow-y: visible;
If you take out both of the overflow properties.. you'll see it fixes the top being chopped but breaks in that now the width overflow is now visible as well.
How can I stop the top of .popup
from being chopped while keeping the horizontal overflow hidden?