border-dotted: Tailwind CSS Border Style class

The rounded class applies small rounded corners to an element.


border-dotted

The border-dotted class creates a dotted border style.

Example Code

html
<div class="rounded-t-md flex items-center justify-center p-4">
<div class="border-dotted border-2 border-indigo-500 p-4 text-gray-700">
Dotted
</div>
</div>

Preview

Dotted

How to Use

Add the Border-dotted class directly to your HTML element:

html
<div class="Border-dotted">
<!-- Your content here -->
</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply Border-dotted at specific breakpoints:

html
<div class="sm:Border-dotted md:Border-dotted lg:Border-dotted">
Responsive element
</div>
  • sm:Border-dotted — applies from 640px and up
  • md:Border-dotted — applies from 768px and up
  • lg:Border-dotted — 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