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

Re: Mixing percentage height and min-height

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 13 Oct 2006 16:47:09 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.62.0610131646210.18283@dhalsim.dreamhost.com>

On Fri, 13 Oct 2006, Boris Zbarsky wrote:
> 
> What if I have:
> 
>  .parent { height: 20px; min-height: 100px; }
>  .child { height: 50% }
> 
> and the same markup?  Should the child end up 10px tall?  Or 50px tall?

50px; the height is based on the height of the containing block which in 
this case is 100px.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 13 October 2006 16:47:22 GMT

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