How to keep the background centered css (2 posts)

  1. keeperbay
    Posted 3 years ago #

    I know this isn't exactly a WordPress issue, but I need it for my WordPress blog.

    The main area is 980px, the background image is 2000px.
    As the browsers gets smaller the moves to the right, I need it to stay centered and the left side needs to vanish.

    Any ideas?

  2. cubecolour
    Posted 3 years ago #

    the CSS rule you need to add is

    background-position: center;

    please provide a link to the site if you need a more specific answer

Topic Closed

This topic has been closed to new replies.

About this Topic