Centering background image, using css
Posted
by Jean
on Stack Overflow
See other posts from Stack Overflow
or by Jean
Published on 2010-04-15T07:02:18Z
Indexed on
2010/04/15
7:33 UTC
Read the original article
Hit count: 306
css
Hello,
I want to center a background image. There is no div used, this is the css style
body{
background-position:center;
background-image:url(../images/images2.jpg) no-repeat;
}
The above CSS tiles all over and does center it, but half the image is not seen, it just kind of moves up. What I want to do is center the image.
Could I adopt the image to view even on a 21".
Appreciate help.
Thanks Jean
© Stack Overflow or respective owner