col-span-4: Tailwind CSS Grid class
The col-span-4 class in Tailwind CSS is used to make an element span four columns in a grid layout.
col-span-4
The col-span-4 class in Tailwind CSS is used to make an element span four columns in a grid layout. It specifies how many columns the grid item.
Example Code
html
<div class="rounded-t-md p-4 bg-indigo-50"> <div class="grid grid-cols-3 gap-4"> <div class="bg-indigo-500 text-white p-4 font-bold text-center">A</div> <div class="bg-indigo-500 text-white p-4 font-bold text-center">B</div> <div class="bg-indigo-500 text-white p-4 font-bold text-center">C</div> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-span-4">D</div> </div></div>
Preview
A
B
C
D
Windframe is a drag and drop builder for rapidly building tailwind css websites and UIs
Start building stunning tailwind UIs!
