centralizing 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:13 UTC
Read the original article Hit count: 208

Filed under:

Hello,

I want to centralize 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 centralize it, but half the image is not seen, it just kind of moves up. What I want to do is centralize the image.
Could I adopt the image to view even on a 21".

Appreciate help.

Thanks Jean

© Stack Overflow or respective owner

Related posts about css