Tag archives for css
A background image can be applied to any element using the following CSS declaration:
background-image: url(image name);
Shorthand
Shorthand background declarations are written as:
background: color image repeat attachment position;
For example, the following code:
p {
background-color: #f00;
background-image: url(background.gif);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
would be written in shorthand as:
p {
background: #f00 url(background.gif) no-repeat fixed center;
}
Background Position
Two ...more»


