border-2: Tailwind CSS Border Width class

The border-2 class applies a border with a thickness of 2px.


border-2

The border-2 class applies a border with a thickness of 2px.

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"> Bottom Border</p>
<div class="border-2 bg-gray-300 border-indigo-500 p-4 w-40 text-gray-700 font-semibold">
border-2
</div>
</div>

Preview

Bottom Border

border-2

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