Background repeat
Utilities for controlling the repetition of an element's background image
Class reference
Repeat
Use .bg-repeat
to repeat the background image both vertically and horizontally.
No Repeat
Use .bg-no-repeat
when you don’t want to repeat the background image.
Repeat Horizontally
Use .bg-repeat-x
to repeat the background image only horizontally.
Repeat Vertically
Use .bg-repeat-y
to repeat the background image only vertically.
Responsive
To control the repetition of an element’s background image at a specific breakpoint, add a {screen}:
prefix to any existing background repeat utility. For example, adding the class md:bg-repeat-x
to an element would apply the bg-repeat-x
utility at medium screen sizes and above.
<div class="bg-repeat md:bg-repeat-x ..."></div>
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5