Re: Mixing percentage height and min-height

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 UTC