VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-placeholder-opacity/

⇱ Tailwind CSS Placeholder Opacity - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Placeholder Opacity

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. By using this class we can set the opacity of any placeholder text. In CSS, we do that by using the CSS Opacity property. 

Placeholder Opacity class:

  • placeholder-opacity-0: Control the opacity of an element's placeholder color using the placeholder-opacity-{amount} utilities.

Note: The number of the opacity can be changeable from 0 to 100 with the span of 5.

Syntax:

<element class="placeholder-{opacity}">...</element>

Example:

Output:

👁 Image
placeholder opacity
Comment