Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Max div height in Internet Explorer

How can I have a div of static 60px height in Internet Explorer?

like image 851
Matteo Avatar asked Sep 26 '10 19:09

Matteo


1 Answers

<div style="height: 60px; overflow: hidden;">Hello, World</div>

Some versions of IE don't follow max-height, unfortunately, and that's where overflow: hidden comes in handy. Note that the div will ALWAYS have 60px height no matter what's inside it.

like image 186
cypher Avatar answered Oct 05 '22 11:10

cypher