Tailwind CSS Classes

Tailwind CSS class .bg-scroll

<div class="bg-scroll bg-contain overflow-auto m-2 h-48 w-64" style="background-image: url('https://tailwind.build/placeholders/pictures/office.jpg')">
  <div class="h-64 w-64"></div>
</div>

Preview

Are you tired of writing HTML by hand?

CSS source

.bg-scroll {
  background-attachment: scroll;
}

More Tailwind CSS classes in Background category

© 2024 Shuffle. All rights reserved.