col-span-6: Tailwind CSS Grid class

The col-span-6 class makes an element span six columns in a grid layout.


col-span-6

The col-span-6 class makes an element span six columns in a grid layout. It adjusts the element's width accordingly.

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 col-span-6">C</div>
<div class="bg-indigo-500 text-white p-4 font-bold text-center">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! 

Build from scratch or select prebuilt tailwind templates