Re: Mixing percentage height and min-height

Boris Zbarsky wrote:
>  .parent { height: 20px; min-height: 100px; }
>  .child { height: 50% }
> 
> and the same markup?  Should the child end up 10px tall?  Or 50px tall? 

I've missed most of this thread, which I think will be an advantage 
here, I'm looking at it from a front-end developer point of view.

My thought process would be: "The parent will be 100px tall, therefore 
the child must be 50px tall".

I would assume that the browser calculates the height of the parent and 
then makes the child 50% of that.

Does that help?

Kind regards,

-Alastair

Received on Friday, 13 October 2006 15:06:05 UTC