border-t-4: Tailwind CSS Border Width class

The border-t-4 class applies a 4px border to the top edge of the element.


Border-t-4

The border-t-4 class applies a 4px border to the top edge of the element.

Example Code

html
<div class="flex flex-col justify-center items-center gap-2 p-3 rounded-t-md bg-gray-50">
<p class="text-gray-600 font-bold"> Top Border</p>
<div class="border-t-4 bg-gray-300 border-indigo-500 p-4 w-40 text-gray-700 font-semibold">
Border-t-4
</div>
</div>

Preview

Top Border

Border-t-4

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