Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 818 Bytes

min-width.md

File metadata and controls

26 lines (21 loc) · 818 Bytes

min-width

The min-width CSS property sets the minimum width of an element. It prevents the used value of the width property from becoming smaller than the value specified for min-width.

Values

<length>
Defines the max-width as an absolute value.
<percentage>
Defines the max-width as a percentage of the containing block's width.
max-content
The intrinsic preferred max-width.
min-content
The intrinsic minimum max-width.
fit-content(<length-percentage>)
Uses the fit-content formula with the available space replaced by the specified argument, i.e. min(max-content, max(min-content, argument)).

Examples

min-width="75%"
min-width="0"
min-width="50px"