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

RE: Center DIV

From: Chris Moschini <Chris.Moschini@amdocs.com>
Date: Mon, 7 Jul 2003 14:07:09 -0500
Message-ID: <3DB269E1BEC8134084EAA64AD4A1E0CF04C87C@stlmail1.corp.amdocs.com>
To: www-style@w3.org
This subject has been beaten to death but I'd like to sum up... .

Some, such as David Woolley suggested that CSS should not offer a macro function, like vertical-center, as it violates the document-oriented nature of CSS. Yet, media-dependent functionality already exists in CSS (thus position: fixed and absolute) and so it's no surprise that vertical center is in fact being considered by the WG. This is ideal.

Ian Hickson noted that the WG is considering position: center, but it can't possibly make it into CSS2.1. Is it possible we'll see it for CSS3? I would like to propose that, as Mikko has echoed, vertical center be accomplished with vertical-align which would let you vertically center something without necessarily horizontally centering it, while position: center would presumably mean it's all-or-nothing (if you desire non-hackish vertical center).

It may also be reasonable to just be consistent and have margin: auto vertically center an element if it has the proper position value (perhaps absolute and fixed).

...or both. position: center just seems too macro.

-Chris "SoopahMan" Moschini

(this is a public mailing list - ignore attachment)

The information contained in this message is proprietary of Amdocs,

protected from disclosure, and may be privileged.

The information is intended to be conveyed only to the designated recipient(s)

of the message. If the reader of this message is not the intended recipient,

you are hereby notified that any dissemination, use, distribution or copying of 

this communication is strictly prohibited and may be unlawful. 

If you have received this communication in error, please notify us immediately

by replying to the message and deleting it from your computer.

Thank you.

Received on Monday, 7 July 2003 15:07:58 UTC

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