border-y-inherit

The border-y-inherit class belongs to the border width group within the borders category.

Example Usage

Here is an example of how to use border-y-inherit:

<div class='h-12 w-12 bg-gray-100 border-y-inherit border-solid border-white  '></div>

Resulting CSS

border-top-color: inherit;
border-bottom-color: inherit;

Other Border width Classes

Get Tailwind Scanner!

The absolute must-have tool for anyone using Tailwind CSS.

Scan, Edit, Export any tailwind site in browser to create the perfect UI - download the chrome extension!