The bg-center class belongs to the background position group within the backgrounds category.
Here is an example of how to use bg-center:
<div class="bg-center p-4 w-32 h-32 rounded-xl bg-cover bg-no-repeat bg-[url('/placeholders/mountain.jpg')]"></div>
background-position: center;
The absolute must-have tool for anyone using Tailwind CSS.
Scan, Edit, Export any tailwind site in browser to create the perfect UI - download the chrome extension!