May 2003
Intermediate to advanced
480 pages
10h 9m
English
By default, a background image, specified with the background-image property, will repeat horizontally and vertically to fill the element (this is often referred to as tiling). The background-repeat property lets you override that behavior with your own preferences.
Inherited: No
See also: Section B.5background-image, Section B.6background-position
repeat, no-repeat, repeat-x, or repeat-y
The first two options are self-explanatory. repeat-x causes the image to repeat only horizontally, effectively forming a horizontal band with the background image. repeat-y causes the image to repeat only vertically, forming a vertical band.
Initial value: repeat
CSS Version: 1
Works in all CSS-compatible ...
Read now
Unlock full access