
June 10th, 2004
11:35 PM
Vertical Align Body
How do I vertically align my body:
body {text-align:center;
margin:3px;
}
___________________
"Well I, I am a time bomb I only live in that one moment in which you die... its
not right, its not what I wanted then but you know and i know there's no going
back"
-Dismemberment Plan
I wish I worked for Best Buy.

June 11th, 2004
12:51 AM
Web Designer
Status: Offline!
best way i do it is make a table which is 100% by 100% then have your site inside it and align the outside table to center
___________________

Fresh Web
Free 5mb Storage

June 11th, 2004
04:23 AM
Neverside Newbie
Status: Offline!
normally you'd add ...
vertical-align: middle;
...but i dont know if it would work with the BODY part.
___________________


June 11th, 2004
05:19 AM
Neverside Newbie
Status: Offline!
Or you could (read: should) use CSS...
http://www.wpdfd.com/editorial/thebox/deadcentre4.html
Anyway, <table>'s aren't for layout in the first place.
// freak
P.S. The vertical-align CSS property is only for inline elements, for such things as subscripts and superscripts.
___________________
Tables for layout is an abuse. -- Internet Explorer is unsafe.

June 11th, 2004
06:40 AM
couldnt you
display:inline;
width:100%;height:100%;
vertical-align:middle;
then? :P
___________________
how do you weigh human life?