Latest

recent

CSS background-repeat Property

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
CSS background-repeat Property Reviewed by 1000sourcecodes on 23:04 Rating: 5
Powered by Blogger.