max-width :
none |
length |
percentage
Compatibility:
Currently not supported by any browser
Version: Level 2 Inherited: No
The max-width property is used to set the maximum width of an element.
Other properties can be used to set the height, width, maximum height, minimum height and the
minimum width.
If a specified value for max-width is less than a previously specified value for min-width
for the same element, then max-width is set to the value of min-width.
If the specified value for min-width is greater than the width value for the same
element, then width is set to the value of min-width.
none
The none value specifies that there are no width limits imposed on the element.
length
The length value specifies the maximum width of the element and can be in any of the
following seven units.
Use the abbreviation.
| Length |
Abbrev. |
| centimeters |
cm |
| ems |
em |
| inches |
in |
| millimeters |
mm |
| picas |
pc |
| pixels |
px |
| points |
pt |
percentage
The percentage value specifies the width of the element as a percentage of the width of the
containing block (i.e., the block that contains the element).
It is a positive integer number.
The percent sign is mandatory.
Code:
p {max-width: 210px;}
p {max-width: 200%;}
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information
|