All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Can you centre a page with elements of Absolute Positioning?

  • # December 31, 2009 at 9:01 am

    Hi All,

    Bit of a newbish question but it has been bothering me for ages and ages.

    Can you centre a page with elements of Absolute Positioning??

    Cheers,

    Liam

    # December 31, 2009 at 12:18 pm

    Yes you can! You just need to make sure that the absolutely positioned items and being positioned within a div that is being positioned relatively, and not to the body or browser window. So:

    Code:

    PS. This was my 1,000th post!

    # January 1, 2010 at 8:15 pm

    Congrats on 1000 Doc! That’s amazing.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed