CSS Background-repeat Property
The background-repeat property sets whether or not, and even how, a given background image should be tiled, or repeated if its smaller then its container.
Possible Values
- no-repeat
- repeat (Default)
- repeat-x [Repeats the image Horizontally]
- repeat-y [Repeats the image Vertically]
Example
The following example first sets a background-image for body, and then how it should be repeated, (in this case only Horizontally).
body {
background-image: url("MyImage.png");
background-repeat: repeat-x;
}Inherited? - NO!