mohwd's avatar
Level 1

border class not a working tailwind

border border-red-900
0 likes
2 replies
LaryAI's avatar
LaryAI
AI
Best Answer
Level 58

The border-red-900 class is not a valid class in Tailwind CSS. The valid border color classes in Tailwind CSS are border-{color}-100 to border-{color}-900, where {color} can be any of the valid color names or hex codes.

To set a red border, you can use the border-red-500 class, which sets the border color to the default shade of red in Tailwind CSS.

Example:

<div class="border border-red-500">This element has a red border</div>
siangboon's avatar

It's hard to find the issue for css, suggest that inspect the elements and check whether any other class override it, or try and error on the giving styles box in developer tools..

Please or to participate in this conversation.