HomeReferencesCSS Properties

CSS Property: background-repeat

Specifies how a background image will repeat itself within a box.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • inherit
  • repeat (default) - tiled, repeating the image both horizontally and vertically.
  • repeat-x - repeating the image horizontally only.
  • repeat-y - repeating the image vertically only.
  • no-repeat - not repeating the image at all, showing just one instance.

Example


#header { background-repeat: repeat-x; }