Tailwind CSS Classes

Tailwind CSS class .bg-auto

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

Preview

Are you tired of writing HTML by hand?

CSS source

.bg-auto {
  background-size: auto;
}

More Tailwind CSS classes in Background category

© 2024 Shuffle. All rights reserved.