Skip to content

Backgrounds

Background Repeat

Utilities for controlling the repetition of an element's background image.

Quick reference

ClassDescription
bg-repeatbackground-repeat: repeat
bg-no-repeatbackground-repeat: no-repeat
bg-repeat-xbackground-repeat: repeat-x
bg-repeat-ybackground-repeat: repeat-y
bg-repeat-roundbackground-repeat: round
bg-repeat-spacebackground-repeat: space

Basic usage

Repeat

Use bg-repeat to repeat the background image both vertically and horizontally.

html
<div class="bg-repeat ..."></div>

No Repeat

Use bg-no-repeat when you don’t want to repeat the background image.

html
<div class="bg-no-repeat ..."></div>

Repeat Horizontally

Use bg-repeat-x to repeat the background image only horizontally.

html
<div class="bg-repeat-x ..."></div>

Repeat Vertically

Use bg-repeat-y to repeat the background image only vertically.

html
<div class="bg-repeat-y ..."></div>

Released under the Apache 2.0 License.