row-span-2: Tailwind CSS Grid class

The row-span-2 class is used to make an element span two rows in a grid layout.


row-span-2

The row-span-2 class is used to make an element span two rows in a grid layout.

Example Code

html
<div class="rounded-t-md p-4 bg-indigo-50 mt-12">
<div class="grid grid-rows-2 grid-flow-col 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 flex items-center justify-center row-span-2"
>
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