Easy Tutorial
❮ Css3 Pr Background Clip Pr Class Position ❯

CSS min-width Property

Example

Set the minimum width of a paragraph:

p {
    min-width: 1000px;
}

Property Definition and Usage

The min-width property sets the minimum width of an element.

Note: The min-width property does not include padding, borders, or margins!

Default value: 0
Inherited: no
--- ---
Version: CSS2
--- ---
JavaScript syntax: object.style.minWidth="10px"
--- ---

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
min-width 1.0 7.0 1.0 2.0.2 4.0

Property Values

Value Description
length Defines the minimum width value of the element. Default value: depends on the browser.
% Defines the minimum width as a percentage of the containing block's width.
inherit Specifies that the value of the min-width property should be inherited from the parent element.

Related Articles

CSS Tutorial: CSS Dimension

CSS Reference: max-width Property

❮ Css3 Pr Background Clip Pr Class Position ❯