Expand All | Collapse All

CSS min-width Property

Topic: CSS3 Properties ReferencePrev|Next


The min-width CSS property specifies the minimum width of the content area of an element. This minimum width does not include padding, borders, or margins — see the CSS box model.

The following table summarizes the usages context and the version history of this property.

Default value: 0
Applies to: All elements except non-replaced inline elements, table rows, and row groups
Inherited: No
Animatable: Yes. See animatable properties.
Version: CSS 2, 3


The syntax of the property is given with:

min-width length | percentage | initial | inherit

The example below shows the min-width property in action.

p {
    min-width: 500px;
div {
    min-width: 800px;

Property Values

The following table describes the values of this property.

Value Description
length Specifies the minimum width as a length value in px, pt, cm, em, etc. Negative length values are not allowed.
percentage Specifies the minimum width in percentage. The percentage is calculated with respect to the width of the element's containing block. Negative percentage values are not allowed.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element min-width property.

Browser Compatibility

The min-width property is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 1+
  • Google Chrome 1+
  • Internet Explorer 7+
  • Apple Safari 1+
  • Opera 7+

Further Reading

See tutorial on: CSS Box Model, CSS Dimension.

Related properties: width, max-width.

Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties