Archive for the 'webdev' Category

min-height hack

A useful cross-browser min-height hack for IE6+ which doesn’t mess up the implementation of min-height in good browsers:

selector {
  min-height: 400px;
  _height: auto !important;
  height: 400px;
}

Props to dustindiaz.com and an astute commenter.