[CSS] implementing Min-height in IE
Posted: Mon Feb 27, 2006 9:51 am
i've found this useful hack to implement min-height proprety on IExplorer (which does not support it)
!important is used to overwrite the following directive (height:200px)
so
explorer will read only height:200px
firefox will read only min-height:250px; and height: auto !important, will overwrite height:200px
link to the article (in italian)
http://constile.org/tips/min-height/#CONTENUTI
explorer don't support min-height and !important, and uses hight as min-height
.box {
min-height:250px;
height: auto !important;
height: 250px;
}
!important is used to overwrite the following directive (height:200px)
so
explorer will read only height:200px
firefox will read only min-height:250px; and height: auto !important, will overwrite height:200px
link to the article (in italian)
http://constile.org/tips/min-height/#CONTENUTI