I need to ensure that a large div
maintains the same height as 20 other divs
within the same container
, when the screen size is between 1024px
and 1920px
in width.
The challenge lies in arranging all these items in a floated layout grid that looks clean and visually appealing.
The requirement is for the big div
to occupy 60% of the container's width, while each small div takes up 20% width and floats next to the large one.
The structure should resemble the following:
<div class="container">
<div class="big-div" style="width: 60%;"></div>
<div class="small-div" style="width: 20%;"></div>
<div class="small-div" style="width: 20%;"></div>
<div class="small-div" style="width: 20%;"></div>
<div class="small-div" style="width: 20%;"></div>
<div class="small-div" style="width: 20%;"></div>
<div class="small-div" style="width: 20%;"></div>
<div class="small-div" style="width: 20%;"></div>
<div class="small-div" style="width: 20%;"></div>
<div class="small-div" style="width: 20%;"></div>
</div>