The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Can you centre a page with elements of Absolute Positioning?
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
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:
PS. This was my 1,000th post!
Congrats on 1000 Doc! That’s amazing.