Name

min-width

Synopsis

Specifies the minimum width of an element. Negative values are not permitted.

Values:

<length> | <percentage> | none | inherit

Initial value:

none

Applies to:

All elements except nonreplaced elements (i.e., inline text elements) and table elements.

Inherited:

No.

Percentages:

Refer to width of the containing block.

Computed value:

Percentage values or absolute length as specified; otherwise, none.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.