ScanSkill

min-width

The min-width property defines the minimum width of an element. If the content width is less than the min-width then the min-width property will have no effect.

Syntax

min-width: value | none;

Example

.mydiv {
            border: 1px solid black;
            min-width: 150px;
        }
min-width

Property Values

value: sets the given value as the minimum width of the element.

none: sets no minimum height. (default value)