CSS Background Repeat
The CSS background-repeat
property is used to control whether a background image should be repeated horizontally and/or vertically on a webpage.
Syntax
background-repeat: repeat|repeat-x|repeat-y|no-repeat|initial|inherit;
- repeat: The background image will be repeated both horizontally and vertically as necessary to fill the container.
- repeat-x: The background image will be repeated horizontally only.
- repeat-y: The background image will be repeated vertically only.
- no-repeat: The background image will not be repeated.
- initial: Sets the property to its default value.
- inherit: Inherits the property from its parent element.