The width
CSS property specifies the width of an element. By default, the property defines the width of the border area. If box-sizing
is set to content-box
, however, it instead determines the width of the content area.
The min-width
and max-width
properties override width
.
auto
Default value. lynx will calculate and select a width for the specified element.
<length>
<length>
defines the width as a distance value.
<percentage>
Defines the width as a percentage of the containing block's width.
max-content
The intrinsic preferred width.
fit-content
fit-content
uses the computed size with the available space replaced by the specified argument.
Initial value | auto |
Applies to | all elements |
Inherited | no |
Animatable | yes |
Percentages | refer to the width of the containing block |
content area
.min-content
is not supported.LCD tables only load in the browser