col-end-12: Tailwind CSS Grid class
The col-end-2 class ensures the grid item ends at the second column of the grid layout.
col-end-12
The col-end-12 class makes the grid item end at the twelfth column in the layout.
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-2 col-span-4">A</div> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-start-3 col-end-10">B</div> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-start-1 col-end-11 ">C</div> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-start-3 col-end-7">D</div> <div class="bg-indigo-500 text-white p-4 font-bold text-center col-start-2 col-end-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!
