Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

77 users online



Vertical Align Body

Vertical Align Body

Currently viewing this thread: 1 (0 members and 1 guests)


The_Scarecrow

The_Scarecrow

Status: Offline!

Vertical Align Body

How do I vertically align my body:

Code:

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.

Fresh

Fresh

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

___________________

http://www.fweb.ws/images/design/fresh.gif
Fresh Web
Free 5mb Storage

mhr

mhr

Neverside Newbie
Status: Offline!

normally you'd add ...

vertical-align: middle;

...but i dont know if it would work with the BODY part.

___________________

http://www.sighost.us/members/mhr/roads.gif

freak

freak

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.

Tsukmar

Tsukmar

Student
Status: Offline!

couldnt you

Code:


display:inline;
width:100%;height:100%;
vertical-align:middle;


then? :P

___________________

how do you weigh human life?

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0077 seconds.