My goal is to create a responsive design, but I am encountering an issue where reducing the window size causes elements to go off-screen.
<h5>User Stories</h5><div class="stories-list d-flex "><div class="position-relative"><img src="https://example.com/image1.jpg" alt="story"><!----><a href="https://example.com/image1.jpg" target="_self" class="story-hover"><p>Download</p></a><!----><!----><!----></div>
...
.stories-list>div {
height: 220px;
width: 125px;
margin: 0 5px;
border-radius: 8px;
border: 1px solid rgba(0,0,0,.2);
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
cursor: pointer;
overflow: hidden;
}
...
I aim to achieve a layout similar to:
Where the content automatically shifts to a new line on smaller screens
This is the desired outcome for the image in the codepen example, aiming for a responsive design with content moving to a new line as needed.