Background position
Utilities for controlling the position of an element's background image
Class reference
Usage
Use the .bg-{side}
utilities to control the position of an element’s background image.
Responsive
To control the position of an element’s background image at a specific breakpoint, add a {screen}:
prefix to any existing background position utility. For example, adding the class md:bg-top
to an element would apply the bg-top
utility at medium screen sizes and above.
<div class="bg-center **md:bg-top** ..." style="background-image: url(...)"></div>
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5