Back to CSS1 Reference | CSS1 Properties
Prev background-position | Next border
- repeat, repeat-x, repeat-y, no-repeat
If a background image is specified, the value of 'background-repeat' determines how/if the image is repeated.
A value of 'repeat' means that the image is repeated both horizontally and vertically. The 'repeat-x' ('repeat-y') value makes the image repeat horizontally (vertically), to create a single band of images from one side to the other. With a value of 'no-repeat', the image is not repeated.
background: red url(pendant.gif);
In the example above, the image will only be repeated vertically.