Min-height hack

I’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;

Leave a Reply

Your email address will not be published. Required fields are marked *