Set overflow-y visible while overflow-x is auto so that content can vertically overflow parent's container
问题 I'm using position: absolute and position: relative to display text over an image if its parent is hovered over. The container that the text and images parent div is in is set to overflow-x: auto , causing it to have a horizontal scrollbar. I want the text that appears to vertically overflow the #container element (and the horizontal scrollbar), but this is not happening - instead, a vertical scrollbar is appearing in the container. I do not want the containers height to expand to the height