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

Home Forums CSS CSS layout help Re: CSS layout help

"pghtech" wrote:
I think i found the trick.

Background-position: center 0

This centered horizontal and at 0 from the top.

That’s the trick indeed. ;)
Aligning a div in the center and removing the scrollbars (overflow:hidden) is not a good solution. People with small resolutions or not-maximized windows can’t view the whole width of the page and can’t scroll either.