min-width property CSS Reference

Definition and Usage

The min-width CSS property is used to set the minimum width of a given element. It prevents the used value of the width property from becoming smaller than the value specified for min-width.

The value of min-width overrides both max-width and width.

  • Initial 0
  • Applies to all elements but non-replaced inline elements, table rows, and row groups
  • Inherited no
  • Percentages refer to the width of the containing block
  • Media visual
  • Computed Value the percentage as specified or the absolute length
  • Animatable yes, as a length, percentage or calc(); when both values are lengths, they are interpolated as lengths; when both values are percentages, they are interpolated as percentages; otherwise, both values are converted into a calc() function that is the sum of a length and a percentage (each possibly zero), and these calc() functions have each half interpolated as real numbers.
  • Canonical order the unique non-ambiguous order defined by the formal grammar


Formal syntax: <length> | <percentage> | max-content | min-content | fit-content | fill-available
min-width: 3.5em
min-width: 10%
min-width: max-content
min-width: min-content
min-width: fit-content
min-width: fill-available
min-width: inherit


The fixed minimum width. See <length> for possible units. Negative values make the declaration invalid.
The fixed minimum width expressed as a <percentage> of containing block's width. Negative values make the declaration invalid.
The intrinsic preferred width.
The intrinsic minimum width.
The containing block width minus horizontal margin, border and padding. Some browsers implement an ancient name for this keyword, available.
Defined as min(max-content, max(min-content, fill-available).


table { min-width: 75%; }
form { min-width: 0; }


Desktop browsers

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support1.01.0 (1.0) (416), buggy before
applies to <table> Not supported(Yes)Not supported(Yes)Not supported
max-content, min-content, fit-content, and fill-available24.0 -webkit3.0 (1.9) -mozNot supportedNot supportedNot supported
auto Obsolete since Gecko 2221.016.0 (16.0)Not supported12.10Not supported
auto as initial value Obsolete since Gecko 2221.018.0 (18.0)Not supported12.10Not supported

Mobile browsers

FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile

Relative articles