Skip to main content
CSS is fun and cool and I like it.
Almanac

background-repeat

If a background-image property is specified, the background-repeat property in CSS defines if (and how) it will repeat. Here’s an example:

html {
  background-image: url(logo.png);
  background-repeat: repeat-x; 
}

These are the possible values for this property (besides the usual stuff like inherit):

  • repeat: tile the image in both directions. This is the default value.
  • repeat-x: tile the image horizontally
  • repeat-y: tile the image vertically
  • no-repeat: don’t tile, just show the image once
  • space: tile
Read article “background-repeat”