Background position
Tailwind CSS Background position
Use responsive background position utilities with TW elements. A tutorial on how to control the position of an element's background image.
Basic example
To control the position of an element’s background image use the
.bg-{side}
class.
bg-left-top
![](https://mdbcdn.b-cdn.net/img/Photos/Vertical/mountain3.webp)
bg-top
![](https://mdbcdn.b-cdn.net/img/Photos/Vertical/mountain3.webp)
bg-right-top
![](https://mdbcdn.b-cdn.net/img/Photos/Vertical/mountain3.webp)
bg-left
![](https://mdbcdn.b-cdn.net/img/Photos/Vertical/mountain3.webp)
bg-center
![](https://mdbcdn.b-cdn.net/img/Photos/Vertical/mountain3.webp)
bg-right
![](https://mdbcdn.b-cdn.net/img/Photos/Vertical/mountain3.webp)
bg-left-bottom
![](https://mdbcdn.b-cdn.net/img/Photos/Vertical/mountain3.webp)
bg-bottom
![](https://mdbcdn.b-cdn.net/img/Photos/Vertical/mountain3.webp)
bg-right-bottom
![](https://mdbcdn.b-cdn.net/img/Photos/Vertical/mountain3.webp)