col-span-12: Tailwind CSS Grid class
The col-span-12 class spans an element across all 12 columns in the grid layout, occupying the full row.
col-span-12
The col-span-12 class spans an element across all 12 columns in the grid layout, occupying the full row.
Example Code
html
<div class="rounded-t-md p-4 bg-indigo-50"> <div class="grid grid-cols-6 gap-4"> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-start-1 col-span-3" > A </div> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-span-3"> B </div> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-start-1 col-end-3" > C </div> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-start-4 col-end-6" > D </div> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-start-1 col-span-12" > E </div> </div></div>
Preview
A
B
C
D
E
Windframe is a drag and drop builder for rapidly building tailwind css websites and UIs
Start building stunning tailwind UIs!
