rounded-b: Tailwind CSS Border Radius class

The rounded-b class applies rounded corners to only the bottom-left and bottom-right corners of the element.


rounded-b

The rounded-b class applies rounded corners to only the bottom-left and bottom-right corners of the element.

Example Code

html
<div class="flex flex-col justify-center items-center gap-2 p-3 rounded-t-md bg-blue-50">
<p class="text-gray-600 font-bold"> Rounded bottom</p>
<div class="rounded-b bg-blue-500 p-4 w-32 text-white font-semibold">
rounded-b
</div>
</div>

Preview

Rounded bottom

rounded-b

How to Use

Add the rounded-b class directly to your HTML element:

html
<div class="rounded-b">
<!-- Your content here -->
</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply rounded-b at specific breakpoints:

html
<div class="sm:rounded-b md:rounded-b lg:rounded-b">
Responsive element
</div>
  • sm:rounded-b — applies from 640px and up
  • md:rounded-b — applies from 768px and up
  • lg:rounded-b — applies from 1024px and up

Customization

You can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.

Windframe is an AI visual editor for rapidly building stunning web UIs & websites

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates