Name

background-repeat

Values:

repeat | repeat-x | repeat-y | no-repeat | inherit

Initial value:

repeat

Applies to:

All elements.

Inherited:

No.

Computed value:

As specified.

Description:

This property defines the tiling pattern for the background image. Note that the axis-related repeat values actually cause repetition in both directions along the relevant axis. The repetition begins from the origin image, which is defined as the value of background-image and is placed according to the value of background-position.

Examples:

body {background-repeat: no-repeat;}
h2 {background-repeat: repeat-x;}
ul {background-repeat: repeat-y;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Get CSS Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.