[css-d] Center in screen

2006-09-27 Thread mamrg
Hi, How can i center in screen (width and height) this page: ? http://www.gamito.org/wizard.php Any help would be appreciated. Warm Regards, Mário Gamito __ css-discuss [EMAIL PROTECTED]

Re: [css-d] Center in screen

2006-09-27 Thread Dave Goodchild
On 27/09/06, mamrg [EMAIL PROTECTED] wrote: Hi, How can i center in screen (width and height) this page: ? To center in screen, the method I use to avoid any IE hack, is like so (example): #wrapper { width: 700px; position: relative; left: 50%; margin-left: -350px; } as for height, that is

Re: [css-d] Center in screen

2006-09-27 Thread ~davidLaakso
mamrg wrote: How can i center in screen (width and height) this page: ? http://www.gamito.org/wizard.php Mário Gamito This is one method. But centering vertically depends on screen resolution, sidebar use, and top and bottom chrome-- and no two users on earth are necessarily exactly the same.

Re: [css-d] Center in screen

2006-09-27 Thread Roberto Gorjão
Olá Mário, Simplesmente: #inscricao{ position:absolute; left:50%; top:50%; margin-left:-240px; margin-top:-120px; } Roberto mamrg wrote: Hi, How can i center in screen (width and height) this page: ? http://www.gamito.org/wizard.php Any help would be appreciated. --

Re: [css-d] Center in screen

2006-09-27 Thread Daniel Klug
mamrg wrote: Hi, How can i center in screen (width and height) this page: ? I like the Auto-Width margin method. It doesn't sink the div offscreen if the window is too thin. http://bluerobot.com/web/css/center1.html -Daniel