CSS Property: max-width
[this page | pdf | back links]
The CSS (CSS2) max-width property sets the maximum width
an element can become. It overrides the width property.
Valid property values
(other than inherit
and initial) are:
|
Value
|
Description
|
|
length
|
A CSS length
|
|
%
|
Defined as a percentage
of that of the containing block
|
|
none
|
(default value). No
limit
|
|
Default Value:
|
none
|
|
JavaScript syntax:
|
e.g. object.style.maxWidth="300px"
|
|
Inherited:
|
No
|
|
Animatable:
|
Yes
|
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties