Tailwind CSS Classes

Tailwind CSS class .sr-only / .not-sr-only

<span class="sr-only sm:not-sr-only">Lorem ipsum dolor sit amet.</span>

Preview

Are you tired of writing HTML by hand?

CSS source

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

More Tailwind CSS classes in Visibility category

© 2024 Shuffle. All rights reserved.