HTML Dog
Skip to navigation

CSS Property: min-width

The minimum width of the content area of a box.

As with width, the minimum width is based on the content area only — any horizontal padding, border, or margin will be in addition.

Possible Values

ValueNoteExample
[length]Should not be a negative value.300px
[percentage]Calculated in relation to the width of the containing box. Should not be a negative value.50%
inherit
initial
unset

Example


pre { min-width: 600px; }

Browser support