I am encountering the following issue:
.container {
width: 100%;
height: 100%;
position: relative;
}
.contents {
position: absolute;
float: right;
bottom: 0;
width: 100%;
top: calc(100% - 37px);
overflow-x: auto;
overflow-y: hidden;
}
<div class='container'>
<div class='contents'>
The content within the 'contents' div may vary in width, but not in height.
</div>
</div>
When the contents
div overflows, the horizontal scroll bar does not appear. Although the vertical scroll bar is present, it remains hidden and still allows scrolling, only in the vertical direction. What could be missing in this setup?