Tailwind CSS Classes

Tailwind CSS class .divide-opacity-25 / .divide-opacity-*

<div class="flex divide-x-4 divide-opacity-0 divide-teal-600 my-4">
  <div class="flex-1 text-center">1</div>
  <div class="flex-1 text-center">2</div>
  <div class="flex-1 text-center">3</div>
</div>
<div class="flex divide-x-4 divide-opacity-25 divide-teal-600 my-4">
  <div class="flex-1 text-center">1</div>
  <div class="flex-1 text-center">2</div>
  <div class="flex-1 text-center">3</div>
</div>
<div class="flex divide-x-4 divide-opacity-50 divide-teal-600 my-4">
  <div class="flex-1 text-center">1</div>
  <div class="flex-1 text-center">2</div>
  <div class="flex-1 text-center">3</div>
</div>
<div class="flex divide-x-4 divide-opacity-75 divide-teal-600 my-4">
  <div class="flex-1 text-center">1</div>
  <div class="flex-1 text-center">2</div>
  <div class="flex-1 text-center">3</div>
</div>
<div class="flex divide-x-4 divide-opacity-100 divide-teal-600 my-4">
  <div class="flex-1 text-center">1</div>
  <div class="flex-1 text-center">2</div>
  <div class="flex-1 text-center">3</div>
</div>

Preview

Are you tired of writing HTML by hand?

CSS source

.divide-opacity-0 { --divide-opacity: 0; }
.divide-opacity-25 { --divide-opacity: 0.25; }
.divide-opacity-50 { --divide-opacity: 0.5; }
.divide-opacity-75 { --divide-opacity: 0.75; }
.divide-opacity-100 { --divide-opacity: 1; }

More Tailwind CSS classes in Borders category

© 2024 Shuffle. All rights reserved.