max-width

Specifies the maximum width that an element may be.

Platform Support

IENetscapeMozillaOperaSafari
6.07.0+6.0+1.0+7.0+1.0+
  • IE: Minimal support in IE 6.

Usage

[length] | [percentage]

Example

For a demonstration of the min and max height and width attributes, see the demo page on quirksmode:

http://www.quirksmode.org/css/width.html

Remarks

This property is useful for elements that are relatively sized compared to a browser window or parent element.

Availability

W3C CSS2

Related

text_css aptana_docs