is now part of Shuffle™. You can use the editor on this domain, but we encourage you to try Shuffle →. Shuffle™ includes templates for Tailwind CSS, Bootstrap, Bulma, and Material-UI.
← Tailwind CSS classes list

Tailwind CSS class: .bg-contain

<div class="bg-contain h-48 w-64" style="background-image: url('')"></div>


Check .bg-contain 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-contain {
  background-size: contain;

More in Tailwind CSS Background