Javascript Reference
Categories: STYLE

javascript STYLE maxHeight, maxWidth, minHeight, minWidth

@Aug. 15, 2009, 12:19 p.m.
maxHeight, maxWidth, minHeight, minWidth Firefox/Netscape/NN 6 IE (See text) Chrome/Safari/DOM 2  

 

Read/Write  

Define loose heights and widths for an element so that, for "max" properties, an element is allowed to grow no bigger in the designated dimension, or, for "min" properties, an element can expand in the designated dimension to accommodate more than expected content or rendering situations. Although the property is available for IE 5 Macintosh and Netscape 6, it is either ignored (IE 5 for Mac) or buggy (Netscape 6). IE 6 for Windows supports only the minWidth property, and it can be used only for tr, th, and td elements.

 
Value

CSS length value as a string.

 
Default

None.


Powered by Linode.