← Tailwind CSS classes list

Tailwind CSS class: .bg-center

<div class="bg-center 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-center {
  background-position: center;
}

More in Tailwind CSS Background