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

Re: Center DIV

From: Afternoon <afternoon@uk2.net>
Date: Fri, 4 Jul 2003 17:12:44 +0100
To: www-style@w3.org
Message-Id: <5864A0A6-AE3A-11D7-9257-000A957E8988@uk2.net>


>>    body { position: center; }
>
> This would be great for the simple case of the single block centre 
> aligned to the page.

Sorry, I meant to also add that whilst this is great for the simple 
case, I think it would still be useful to create objects that are 
exactly fitted to the vertical height of the browser window or output 
page.

These could be used for creating a diverse range of presentation style 
effects, including viewport borders (a la dialogue cards from silent 
movies). It would also be useful to absolutely position elements easily 
relative to the body area so that, for example, equally spaced items 
could be arranged around the perimeter. These simple additions add up 
to giving the author simple but powerful tools to address the viewport 
space meaningfully.

How about:

	body { height:viewport; }

or something similar? This would have exactly the same behaviour as 
width:auto, except rotated through 90 degrees.

Ben

(q)	Ben Godfrey?
(a)	Web Developer and Designer
	See http://aftnn.org/ for details
Received on Friday, 4 July 2003 12:12:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:22 GMT