Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push background image down

Tags:

css

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?

like image 294
oshirowanen Avatar asked Dec 03 '22 02:12

oshirowanen


2 Answers

Yes:

body {
    background: url(whatever) repeat-x 0px 50px;
}

or:

body {
    background-image: url(whatever);
    background-position: 0px 50px;
    background-repeat: repeat-x;
}
like image 72
Tamás Avatar answered Dec 16 '22 12:12

Tamás


body {
    background:url("http://intranet/img/background-top.png") repeat-x left 50px;
}
like image 21
Subdigger Avatar answered Dec 16 '22 12:12

Subdigger