Definition The background-repeat property sets if/how a background image will be repeated. Inherited: No JavaScript Syntax CSS propertie...
Definition
The background-repeat property sets if/how a background image will be repeated.Inherited: No
JavaScript Syntax
CSS properties can also be dynamically changed with a JavaScript.Scripting Syntax: object.style.backgroundRepeat="repeat-y"
Example
body { background-image: url(stars.gif); background-repeat: repeat-x } |
Possible Values
Value | Description |
---|---|
repeat | Default. The background image will be repeated vertically and horizontally |
repeat-x | The background image will be repeated horizontally |
repeat-y | The background image will be repeated vertically |
no-repeat | The background-image will be displayed only once |
Goto CSS3 and CSS2 complete reference