Extensible HyperText Markup Language

XHTML.com recommends: PSD to HTML Slicing Service and PSD to HTML by W3 Markup. see your link here

background-repeat

Definition

The background-repeat property specifies if an mage is repeated (tiled), and, if so, how.

Example

  1. body {
  2. background: white url('/images/sun.gif');
  3. background-repeat: repeat-y;
  4. background-position: top center;
  5. }

The previous example may render in a Web browser like this:

Screen shot of a Web browser displaying a background image tiled vertically in the middle of the screen.

Characteristics

Possible values

repeat
The image is repeated both horizontally and vertically.
repeat-x
The image is repeated horizontally only.
repeat-y
The image is repeated vertically only.
no-repeat
The image is not repeated: only one copy of the image is drawn.
inherit
Use the same computed value as the parent element for this property.

Default value

repeat

Applies to

Inherited

No

See also