Visit Mozilla.org

CSS:min-width

出典: MDC


◆◆◆ 翻訳中 ◆◆◆

このページは翻訳中です。
翻訳作業に参加する場合は、履歴にある翻訳者と連絡·調整してください。


« CSS リファレンス

[編集] 概要

min-widthプロパティは、エレメントの最小幅を指定する際に使用します。最小幅を指定することで、width属性の幅が、min-widthで指定した最小幅よりも小さくなることを防ぐことができます。

  • 初期値: 0
  • Applies to: block level and replaced elements
  • 継承: なし
  • パーセンテージ: 指定したブロックの幅を参照します。
  • メディア: visual
  • 計算値:


[編集] Syntax

min-width: <length> | <percentage> | -moz-intrinsic | -moz-min-intrinsic | -moz-shrink-wrap | -moz-fill

[編集] Values

  • length : can be in px, cm, in
  • percentage : % specified as a percentage of containing block's width
  • -moz-intrinsic : the intrinsic preferred width Firefox 3 の新機能
  • -moz-min-intrinsic : the intrinsic minimum width Firefox 3 の新機能
  • -moz-fill : the containing block width minus horizontal margin, border, and padding Firefox 3 の新機能
  • -moz-shrink-wrap : the same as -moz-min-intrinsic Firefox 3 の新機能

[編集] Examples

Template:CSSRefExampleLink

table{min-width: 75%;}

form{min-width: 0;}

[編集] Notes

min-width overrides both max-width and width.


[編集] Specifications

[編集] Browser compatibility

Browser Lowest Version
Internet Explorer 6
Netscape 6
Opera 3.5

[編集] See also

box model, min-height, -moz-box-sizing, width, max-width