HTML Backgrounds
The code below shows you how to position a background image on a web page with CSS.
Ex:
body
{
background-image:url('image.jpg');
background-repeat: no-repeat;
background-position: top center;
}
The background-position property can have the following values:
Property:
background-position
Values:
op left
top center
top right
center left
center center
center right
bottom left
bottom center
bottom right
x% y%
xpos ypos
Ex:
body
{
background-image:url('image.jpg');
background-repeat: no-repeat;
background-position: top center;
}
The background-position property can have the following values:
Property:
background-position
Values:
op left
top center
top right
center left
center center
center right
bottom left
bottom center
bottom right
x% y%
xpos ypos
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home