How do I make an auto height div with a set minimum height?
Posted on 2008-10-22
I have a div as a staff profile box. It has a 100x130px portrait image floated on the left and text on the right alongside the image.
My div auto resizes as I type more text but if I delete text, it shrinks below the size of the floated image.
How can I get the div to be height:auto but with min-height; 130px ?
Or alternatively, how can I make it recognize the floated image as an element it cannot reduce past?
Sorry if this is a stupid question or dodgy syntax, I'm just starting out with CSS.