is now part of Shuffle™. The new editor includes templates for Tailwind CSS, Bootstrap, Bulma, and Material-UI.
Switch to Shuffle →
← Tailwind CSS classes list

Tailwind CSS class: .bg-fixed

<div class="bg-fixed 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

Check .bg-fixed 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.

CSS source

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

More in Tailwind CSS Background