aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/min-height/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/css/min-height/index.md')
-rw-r--r--files/ja/web/css/min-height/index.md118
1 files changed, 118 insertions, 0 deletions
diff --git a/files/ja/web/css/min-height/index.md b/files/ja/web/css/min-height/index.md
new file mode 100644
index 0000000000..3d49776065
--- /dev/null
+++ b/files/ja/web/css/min-height/index.md
@@ -0,0 +1,118 @@
+---
+title: min-height
+slug: Web/CSS/min-height
+tags:
+ - CSS
+ - CSS Property
+ - Layout
+ - Minimum
+ - Reference
+ - dimensions
+ - height
+ - min-height
+ - 'recipe:css-property'
+ - size
+translation_of: Web/CSS/min-height
+---
+<div>{{CSSRef}}</div>
+
+<p><strong><code>min-height</code></strong> は <a href="/ja/docs/Web/CSS">CSS</a> のプロパティで、要素の最小幅を設定します。これは {{cssxref("height")}} プロパティの<a href="/ja/docs/Web/CSS/used_value">使用値</a>が、<code>min-height</code> で指定した値を下回ることを防ぎます。</p>
+
+<div>{{EmbedInteractiveExample("pages/css/min-height.html")}}</div>
+
+<div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div>
+
+<p><code>min-height</code> の値が {{cssxref("max-height")}} および {{cssxref("height")}} の値より大きい場合は、<code>min-height</code> の値が要素の幅になります。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="brush:css no-line-numbers notranslate">/* &lt;length&gt; 値 */
+min-height: 3.5em;
+
+/* &lt;percentage&gt; 値 */
+min-height: 10%;
+
+/* キーワード値 */
+min-height: max-content;
+min-height: min-content;
+min-height: fit-content(20em);
+
+/* グローバル値 */
+min-height: inherit;
+min-height: initial;
+min-height: unset;
+</pre>
+
+<h3 id="Values" name="Values">値</h3>
+
+<dl>
+ <dt>{{cssxref("&lt;length&gt;")}}</dt>
+ <dd><code>min-height</code> を絶対的な値で定義します。</dd>
+ <dt>{{cssxref("&lt;percentage&gt;")}}</dt>
+ <dd><code>min-height</code> を包含ブロックの高さに対するパーセント値で定義します。</dd>
+ <dt><code>auto</code></dt>
+ <dd>ブラウザーが指定された要素の <code>min-height</code> を計算して選択します。</dd>
+ <dt><code>max-content</code></dt>
+ <dd>内容物が推奨する <code>min-height</code> です。</dd>
+ <dt><code>min-content</code></dt>
+ <dd>内容物の最小の <code>min-height</code> です。</dd>
+ <dt><code>fit-content({{cssxref("&lt;length-percentage&gt;")}})</code></dt>
+ <dd>利用可能な空白を指定された引数で置き換えた <code>fit-content</code> 式を使用します。すなわち、 <code>min(max-content, max(min-content, <var>引数</var>))</code> です。</dd>
+</dl>
+
+<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+
+<p>{{cssinfo}}</p>
+
+<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+
+{{csssyntax}}
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<h3 id="Setting_min-height" name="Setting_min-height">min-height の設定</h3>
+
+<pre class="brush:css; notranslate">table { min-height: 75%; }
+
+form { min-height: 0; }
+</pre>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('CSS4 Sizing', '#width-height-keywords', 'min-height')}}</td>
+ <td>{{Spec2('CSS4 Sizing')}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName('CSS3 Sizing', '#width-height-keywords', 'min-height')}}</td>
+ <td>{{Spec2('CSS3 Sizing')}}</td>
+ <td>キーワード <code>max-content</code>, <code>min-content</code>, <code>fit-content</code> を追加。</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('CSS2.1', 'visudet.html#min-max-heights', 'min-height')}}</td>
+ <td>{{Spec2('CSS2.1')}}</td>
+ <td>初回定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p>{{Compat("css.properties.min-height")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li><a href="/ja/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model">ボックスモデル</a>, {{cssxref("box-sizing")}}</li>
+ <li>{{cssxref("height")}}, {{cssxref("max-height")}}</li>
+</ul>