border-x-8: Tailwind CSS Border Width class

The border-x-8 class applies an 8px border to both left and right edges.


Border-x-8

The border-x-8 class applies an 8px border to both left and right edges.

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

Preview

Thick Horizontal Borders

Border-x-8

How to Use

Add the Border-x-8 class directly to your HTML element:

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

Responsive Usage

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

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