[thelist] Vertically Centering Tables
David Dorward
evolt at david.us-lot.org
Mon Feb 17 13:37:01 CST 2003
On Mon, Feb 17, 2003 at 01:42:56 -0500, Nebula wrote:
> Hello. I'm making a webpage where the content should be in the middle
> of the browser viewing area (centered vertically and horizontally).
Complete centring for Mozilla et al:
html {
width: 100%;
height: 100%;
}
body {
width: 100%;
height: 100%;
display: table-cell;
vertical-align: middle;
}
#content {
margin-left: auto;
margin-right: auto;
}
--
David Dorward http://david.us-lot.org/
"You cannot rewrite history, not one line."
- The Doctor (Dr. Who: The Aztecs)
More information about the thelist
mailing list