July 1998
Intermediate to advanced
1456 pages
65h 5m
English
max-width, min-width — NN n/a IE n/a CSS 2
Inherited: No
These attributes let you establish a minimum and/or maximum width for an element. You can bracket the permissible width of an element regardless of the width caused by the natural flow of the content within a parent container.
max-width:length|percentagemin-width:length|percentage
See the discussion of length values at the beginning of the chapter. The value may also be a percentage that is calculated relative to the element’s container.
0 (min-width); 100% (max-width).
All elements.
Read now
Unlock full access