To ensure that a horizontal scrollbar is displayed on my "content" div when the screen size is smaller than the specified minimum width, I have set the overflow-x property of the parent "container" to hidden. This prevents the scroll from appearing across the entire page.
.content {
background: cyan;
height: 100%;
min-width: 1500px;
overflow-x: scroll;
white-space: nowrap;
}
.container {
overflow-y: auto;
overflow-x: hidden;
}
<div class="container">
<div class="row">
<div class="parent">
<div class="content">
This is a test.
</div>
</div>
</div>
</div>
In the current output below, a visible but non-scrollable scrollbar can be seen, with the div being cut off. What adjustments are needed to make the scrollbar functional? I am utilizing Bootstrap 4 for this implementation.