--- title: min-width slug: Web/CSS/min-width tags: - CSS - CSS Property - Reference translation_of: Web/CSS/min-width ---
min-width
CSS 속성은 요소의 최소 너비를 설정합니다. min-width
는 {{cssxref("width")}} 속성의 사용값이 자신의 값보다 작아지는걸 방지합니다.
min-width
가 {{cssxref("max-width")}} 또는 {{cssxref("width")}}보다 커지면 요소의 높이는 min-width
의 값을 사용합니다.
/* <length> 값 */ min-width: 3.5em; /* <percentage> 값 */ min-width: 10%; /* 키워드 값 */ min-width: max-content; min-width: min-content; min-width: fit-content; min-width: fill-available; /* 전역 값 */ min-width: inherit; min-width: initial; min-width: unset;
auto
max-content
{{ experimental_inline() }}min-content
{{ experimental_inline() }}fill-available
{{ experimental_inline() }}available
로 구현함을 참고하세요.)fit-content
{{ experimental_inline() }}min(max-content, max(min-content, fill-available))
과 같음.table { min-width: 75%; } form { min-width: 0; }
Specification | Status | Comment |
---|---|---|
{{ SpecName('CSS3 Sizing', '#width-height-keywords', 'min-width') }} | {{ Spec2('CSS3 Sizing') }} | Adds the max-content , min-content , fit-content , and fill-available keywords. (Both CSS3 Box and CSS3 Writing Modes drafts used to define these keywords, but are superseded by this spec.) |
{{ SpecName('CSS3 Flexbox', '#min-size-auto', 'min-width') }} | {{ Spec2('CSS3 Flexbox') }} | Adds the auto keyword and uses it as the initial value. |
{{ SpecName('CSS3 Transitions', '#animatable-css', 'min-width') }} | {{ Spec2('CSS3 Transitions') }} | Defines min-width as animatable. |
{{ SpecName('CSS2.1', 'visudet.html#min-max-widths', 'min-width') }} | {{ Spec2('CSS2.1') }} | Initial definition. |
{{cssinfo}}
{{Compat("css.properties.min-width")}}