Min-height hack
Posted: 16 March 2006 Filed under: Useful stuff | Tags: css Leave a commentI’ve just learnt a good hack for min-height. As you’ll know min-height is one of the few things that IE gets right and Firefox doesn’t. So, this little trick below sorts it out. If you want a box to have the minimum height of 200 pixels but to expand when more text is entered, then give tihs this a try:
min-height: 200px;
height: auto !important;
height: 200px;