WordPress.org

Ready to get started?Download WordPress

Forums

How to keep the background centered css (2 posts)

  1. keeperbay
    Member
    Posted 1 year 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
    ɹoʇɐɹǝpoɯ
    Posted 1 year 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