Seeking assistance with creating text boxes for displaying reviews on a website. Each review is contained in a box, with varying heights based on the amount of text. Desired layout is shown in the image below, with black boxes representing review containers.
https://i.sstatic.net/PsRj4.jpg
Struggling to achieve the desired layout without having all boxes stretch to the same size using the flex attribute, or being unable to align based on the largest text box in the column.
Current example code:
.container-reviews {
width: 100%;
justify-content: space-between;
}
.box {
width: 24%;
background-color: black;
color: white;
float: left;
}
<div class="container">
<div class="box">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam</div>
<div class="box">Lorem ipsum dolor sit amet, consectetur adipiscing elit</div>
<div class="box">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</div>
<div class="box">Lorem ipsum dolor sit amet</div>
<div class="box">Lorem ipsum dolor sit amet, consectetur adipiscing elit</div>
<div class="box">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam</div>
<div class="box">Lorem ipsum dolor sit amet</div>
<div class="box">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</div>
</div>
Seeking advice on adjustments to code to achieve the desired alignment for box divs as shown in the image.