VOOZH about

URL: https://www.geeksforgeeks.org/html/tailwind-css-outline/

⇱ Tailwind CSS Outline - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Outline

Last Updated : 23 Jul, 2025

This class accepts lots of value in tailwind CSS in which all the properties are covered as in class form. This class is used to control an element's outline.

Outline Classes:

  • outline-none: This class is used to hide the default browser outline on focused elements.
  • outline-white: This class is used to add a white 2px dotted border around an element with a 2px offset.
  • outline-black: This class is used to add a black 2px dotted border around an element with a 2px offset.

Syntax:

<element class="outline-{style}">...</element>

Example:

Output:

👁 Image

Comment
Article Tags: