col-span-8: Tailwind CSS Grid class
The col-span-8 class allows an element to span eight columns in a grid layout, typically used to create a larger section.
col-span-8
The col-span-8 class allows an element to span eight columns in a grid layout, typically used to create a larger section.
Example Code
html
<div class="rounded-t-md p-4 bg-indigo-50"> <div class="grid grid-cols-4 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-8" > 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!
