Extensible HyperText Markup Language

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

XStandard XHTML WYSIWYG editor
A standards-compliant WYSIWYG editor component for content management applications. The editor generates valid XHTML and uses CSS for formatting. Free version is available.

Check out XStandard