Tailwind CSS Classes

Tailwind CSS class .bg-top

<div class="bg-top bg-gray-400 bg-no-repeat h-48 w-64" style="background-image: url('https://tailwind.build/placeholders/pictures/office.jpg'); background-size: 12rem 8rem"></div>

Preview

CSS source

.bg-top {
  background-position: top;
}

Check .bg-top in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Tailwind CSS classes in Background category

© 2024 Shuffle. All rights reserved.