Reputation: 15925
I have the following css, which places an image across the top of the body background:
body {
background:url("http://intranet/img/background-top.png") repeat-x top;
}
is it possible to push this image down by about 50px?
Upvotes: 5
Views: 13770
Reputation: 2193
body {
background:url("http://intranet/img/background-top.png") repeat-x left 50px;
}
Upvotes: 3
Reputation: 48071
Yes:
body {
background: url(whatever) repeat-x 0px 50px;
}
or:
body {
background-image: url(whatever);
background-position: 0px 50px;
background-repeat: repeat-x;
}
Upvotes: 16