
Background Repeat is an essential property for the background-image property. If you set the background image for the body tag are any other tag on the web page you must use the background-repeat property to assign how your background will display on the web page. Background Repeat Property will display the image in vertical and also in horizontal.
Background Repeat property has a set of some values to display the image in the background.
- no-repaet
- repeat-x
- repeat-y
Syntex for no-repeat:
body{
background-image:url(simily.png);
background-repeat:no-repeat;
}
Example For no-repeat

Syntex for repeat-x:
body{
background-image:url(simily.png);
background-repeat:repeat-x;
}
Syntex for repeat-y:
body{
background-image:url(simily.png);
background-repeat:repeat-y;
}
Example For Repeat

No comments:
Post a Comment