W3C home > Mailing lists > Public > www-style@w3.org > July 2003

vertical centering of block element

From: Christian Sonne <christian@subigo.dk>
Date: Wed, 2 Jul 2003 01:30:20 +0200
To: www-style@w3.org
Message-ID: <20030701233026.GD22103@elmer.skumleren.net>

I'm trying to rid my site of tables, and thus need a new way to center
my content vertically...
So far, I've only been able to accomplish to vertically center the top
of an element, and thereby not the element itself.
So my question goes; is there any way to vertically center a block
element (like div), with a fixed height, WITHOUT using tables?

Christian Sonne 
Stud. scient. math-phys at University of Copenhagen
Version: 3.12
GM/S/CS/O d? s: a--->? C++ UL++>$ P+ L++ E--- W++ N o@ K? w !O M-- V?
PS++(+) PE@ Y-- PGP-@ t+ 5? X++ R@ tv++ b+(++) DI+>++ D G@ e>+++++
h! r-(--) y?
http://geeksbynature.dk || http://geeknews.dk
Received on Tuesday, 1 July 2003 19:30:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:08 UTC