HTML CSS Reference/CSS Attributes and Javascript Style Properties/min height

Материал из Web эксперт
Перейти к: навигация, поиск

"min-height" Example

    
<html>
<body>
<table border="1" style="table-layout:fixed; width:100%;">
  <tr>
     <td style="min-height:125px"> Cell </td>
  </tr>
</table>
</body>
</html>



"min-height" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |currentStyle                    style                         |
|                |runtimeStyle                    <td>                          |
|                |<th>                            <tr>                          |
+----------------+--------------------------------------------------------------+



"min-height" Possible Values

Possible Values
integer          A floating-point number followed by a unit designator
percentage       Percentage of the container element"s minimum height



"min-height" Syntax and Note

Note:
An element minimum height. 
Syntax:
    
element { min-height: value }
elementID.style.minHeight = "value"
document.all.elementID.style.minHeight = "value" // IE only