I recently encountered a challenge while designing a layout for user reviews in one of my projects. Each review varies in length, leading to irregular row lengths with different div element sizes. My goal is to create rows with 3 divs each and have the subsequent divs start below the top row div. Despite my efforts, I couldn't achieve this layout. How can I accomplish this? (Refer to the image linked below for reference.)
Edit: As requested, here's a code snippet for context. Link: https://play.tailwindcss.com/yw2VoqpTBi
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 min-h-fit ">
<div className="h-fit grid gap-8 p-6 border rounded-lg bg-red-500">
[Review content here]
</div>
<div className="h-fit grid gap-8 p-6 border rounded-lg bg-red-500">
[Review content here]
</div>
<div className="h-fit grid gap-8 p-6 border rounded-lg bg-red-500">
[Review content here]
</div>
...
</div>