<div className='grid grid-cols-12 gap-12 mb-8'>
<div className='col-span-8'>
<div className='box'></div>
</div>
<div className='col-span-4'>
<div className='box'></div>
</div>
</div>
Above is the HTML code that I am using along with the Tailwind CSS library, this is the output that I am getting.
Shouldn't the elements render side by side, taking up the whole grid, as one has to take up 8 slots and the other one 4, which adds up to 12? I don't know why the elements are being rendered above the other.
The CSS class box is just:
.box{
background-color: #2b2d40;
height: 100px;
width: auto;
}
So finally my question is, how do I make it so that they are side by side in the same row, as that was the original output that I was expecting?
Thanks in Advance!