W3C home > Mailing lists > Public > www-style@w3.org > October 2004

Re: Box model: min-margin and max-margin, max-padding and min-padding

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 1 Oct 2004 10:27:34 +0000 (UTC)
To: Andrew Thompson <lordpixel@mac.com>
Cc: www style <www-style@w3.org>
Message-ID: <Pine.LNX.4.61.0410011026180.31036@dhalsim.dreamhost.com>

On Thu, 30 Sep 2004, Andrew Thompson wrote:
> 
> ---------------------
> | (1) Header        |
> ---------------------
> | (2) Content | (3) |
> |             |  S  |
> |             |  i  |
> |             |  d  |
> |             |  e  |
> |             |  b  |
> |             |  a  |
> |             |  r  |
> ---------------------
> 
> Insofar as I can tell, there's NO ideal way to do this in CSS. 

Make (1) display: table-row, and (2) and (3) display: table-cell, with the 
element containing all three (possibly the <body>) display: table with 
width: 100%.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 1 October 2004 10:27:37 GMT

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