CSS body Background Centered to be aligned with content

Posted by salsanz on Stack Overflow See other posts from Stack Overflow or by salsanz
Published on 2010-04-20T14:20:40Z Indexed on 2010/04/20 14:23 UTC
Read the original article Hit count: 324

Filed under:
|
|

I want to put a Background image centered in the body (backgroundPosition). And then I want all the content(text, tables....) I will add to the page to be aligned with the background, for example, If I zoom the Page, the proportions Background-Content should be respected.

I tried almost everything and I don't know if Its possible, I know if I use position top-left for background position and then content in float:left proportions will be respected, but If I want background centered?

© Stack Overflow or respective owner

Related posts about css

Related posts about background-image