Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS IE top: position not working! Re: IE top: position not working!

#74279
doobie
Member

Instead of setting a width and margin: 0 auto; on the body, wrap all of the contents inside the body in a <div> with an id like #pageWrap or #wrapper or whatever. Then set the width of this div to whatever, looks like you’re using 1024px. Then set it’s margin to margin: 0 auto; to center it on the page.

http://css-tricks.com/snippets/css/centering-a-website/