Posted By

brianyang on 09/01/09


Tagged

css min-height cross-browser


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

rickfu


MIN-HEIGHT FOR IE (AND ALL OTHER BROWSERS)


 / Published in: CSS
 

URL: http://www.cssplay.co.uk/boxes/minheight.html

  1. /* modern browsers */
  2. .container {
  3. min-height:8em;
  4. height:auto !important;
  5. }
  6.  
  7. /* for Internet Explorer */
  8. /*\*/
  9. * html .container {
  10. height: 8em;
  11. }
  12. /**/

Report this snippet  

You need to login to post a comment.