To specify min width of a view. It prevents the applied value of width
becoming larger than the specified value of min-width
.
The priority of min-width
is higher than width
but lower than max-width
.
<length>
<length>
defines the min-width as an absolute value. Default to 0px
.
<percentage>
Defines the min-width as a percentage of the containing block's width.
Initial value | 0px |
Applies to | all elements |
Inherited | no |
Animatable | yes |
Percentages | refer to the width of the containing block |
max-width
is higher than width
and min-width
. While in Web, max-width
overrides width
, but min-width
overrides max-width
.min-width
is specified smaller than min-width
, min-width
will be ignored.auto
is not supported, default value is 0px
.max-content
, min-content
, fit-content
, min-content
are not supported.LCD tables only load in the browser