Tailwind CSS Border Opacity Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 3 Likes Like Report This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. The border-opacity is the class of an element that describes the transparency of the element. It is the alternative to the CSS Opacity / Transparency.Border Opacity class:border-opacity-0border-opacity-5border-opacity-10border-opacity-20border-opacity-25border-opacity-30border-opacity-40border-opacity-50border-opacity-60border-opacity-70border-opacity-75border-opacity-80border-opacity-90border-opacity-95border-opacity-100Syntax:<element class="border-opacity-{amount}">...</element>Example: HTML <!DOCTYPE html> <html> <head> <link href="https://unpkg.com/tailwindcss@1.9.6/dist/tailwind.min.css" rel="stylesheet"> </head> <body class="text-center mx-4 space-y-2"> <h1 class="text-green-600 text-5xl font-bold"> GeeksforGeeks </h1> <b>Tailwind CSS Border Opacity Class</b> <div class="mx-14 bg-green-200 grid grid-rows-4 grid-flow-col gap-2 text-justify p-4"> <p class="border-green-800 border-4 border-opacity-100 p-2"> A Computer Science Portal for Geeks </p> <p class="border-green-800 border-4 border-opacity-75 p-2"> A Computer Science Portal for Geeks </p> <p class="border-green-800 border-4 border-opacity-50 p-2"> A Computer Science Portal for Geeks </p> <p class="border-green-800 border-4 border-opacity-25 p-2"> A Computer Science Portal for Geeks </p> <p class="border-yellow-800 border-4 border-opacity-100 p-2"> A Computer Science Portal for Geeks </p> <p class="border-yellow-800 border-4 border-opacity-75 p-2"> A Computer Science Portal for Geeks </p> <p class="border-yellow-800 border-4 border-opacity-50 p-2"> A Computer Science Portal for Geeks </p> <p class="border-yellow-800 border-4 border-opacity-25 p-2"> A Computer Science Portal for Geeks </p> <p class="border-pink-800 border-4 border-opacity-100 p-2"> A Computer Science Portal for Geeks </p> <p class="border-pink-800 border-4 border-opacity-75 p-2"> A Computer Science Portal for Geeks </p> <p class="border-pink-800 border-4 border-opacity-50 p-2"> A Computer Science Portal for Geeks </p> <p class="border-pink-800 border-4 border-opacity-25 p-2"> A Computer Science Portal for Geeks </p> </div> </body> </html> Output: Create Quiz Comment S skyridetim Follow 3 Improve S skyridetim Follow 3 Improve Article Tags : Web Technologies CSS Tailwind CSS Tailwind-Borders Explore CSS Introduction 3 min read CSS Syntax 3 min read CSS Selectors 6 min read CSS Comments 2 min read CSS Colors 5 min read CSS Borders 5 min read CSS Margins 4 min read CSS Height and Width 4 min read CSS Outline 4 min read CSS Fonts 4 min read Like