CSS Min-Height Hack

Okay, let’s just say we’re not huge fans of hacking code, any code.  We love conforming to web standards and we do all we can to stick within the guidelines presented to us by the almighty w3c.  That being said, there will be times when you come up against something that requires a quick fix for an issue that has no real solution; well web ,compliant solution that is.  Below is a great work arond for the min-height styles issue, if you have no idea what we’re talking about, bookmark this cause sooner or late you’ll come across a scenario where this would come in handy.

.example {
     min-height: 280px;
     height: auto !important;
     height: 280px;

The above code works in IE6, IE7, IE8, Firefox, and Chrome. We haven’t found anything it hasn’t worked on yet, if you find an issue in a browser, please let us know and we’ll update this post.

Comments are closed.