Currently, I am working on developing an up-and-down carousel with Tailwind CSS. However, I am encountering a challenge in aligning the elements in the second row of my grid. My main objective is to have these elements centered vertically within the grid.
click here for image description
const Carousel = () => {
return (
<div className='grid grid-cols-2 gap-12 '>
<div className='w-72 h-48 bg-white rounded-xl shadow-xl'>
</div>
<div className='w-72 h-48 bg-white rounded-xl shadow-xl'>
</div>
<div className='w-72 h-48 bg-white rounded-xl shadow-xl'>
</div>
<div className='w-72 h-48 bg-white rounded-xl shadow-xl'>
</div>
<div className='w-72 h-48 bg-white rounded-xl shadow-xl'>
</div>
<div className='w-72 h-48 bg-white rounded-xl shadow-xl'>
</div>
<div className='w-72 h-48 bg-white rounded-xl shadow-xl'>
</div>
</div>
)
}
export default Carousel;
I hope to achieve a layout similar to this: