I had to rule out overflow: hidden as this box sometimes has content,
so needed a flexible height range from 1+px. The suggestion to insert
a comment did what I needed, but it seemed unintuitive and prone to
error/confusion. So I opted to add an extra .empty class instead in
the end - to make it explicit what was going on.

This was for a optional footer on a portlet container where the footer
div was used to complete the chrome around the portlet, but may not
always have any content.

thanks,
Sam

On 10/8/06, Holly Bergevin <[EMAIL PROTECTED]> wrote:
> From: "sam foster" <[EMAIL PROTECTED]>
>
> > I have this div,
> >that I want to give a minimum height of 1px. It may or may not get any
> >content in it, and I want it to collapse up if its empty.
> >IE 6 doesnt of course support min-height, so for now I'm using height:
> >1px. But even this simple case fails:
> >http://www.sam-i-am.com/work/sandbox/css/iestubbornbox.html
>
> > I cant
> >fiddle with line-height, as this div will sometimes get content. Any
> >other thoughts?
>
> Try {overflow: hidden;} on the stubborn box and see if that brings the 
> results you desire.
>
> ~holly
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to