aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/min-height
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-16 10:16:30 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-24 08:28:57 +0900
commitb878d4a1cf8abdbaef200f64391ed6af2d80c2a6 (patch)
tree67646d52152e63c49ac2cbfc4f5971cbd283fc6f /files/ja/web/css/min-height
parent6d0dda3295c6f3ffc906e64b9706dcdb10a731f8 (diff)
downloadtranslated-content-b878d4a1cf8abdbaef200f64391ed6af2d80c2a6.tar.gz
translated-content-b878d4a1cf8abdbaef200f64391ed6af2d80c2a6.tar.bz2
translated-content-b878d4a1cf8abdbaef200f64391ed6af2d80c2a6.zip
CSS Box Sizing 関連のリファレンスを更新
- 2021/11/14 時点の英語版に同期
Diffstat (limited to 'files/ja/web/css/min-height')
-rw-r--r--files/ja/web/css/min-height/index.md129
1 files changed, 51 insertions, 78 deletions
diff --git a/files/ja/web/css/min-height/index.md b/files/ja/web/css/min-height/index.md
index 3d49776065..27fbb98ff5 100644
--- a/files/ja/web/css/min-height/index.md
+++ b/files/ja/web/css/min-height/index.md
@@ -3,33 +3,33 @@ title: min-height
slug: Web/CSS/min-height
tags:
- CSS
- - CSS Property
- - Layout
- - Minimum
- - Reference
- - dimensions
+ - CSS プロパティ
+ - レイアウト
+ - 最小
+ - リファレンス
+ - 寸法
- height
- min-height
- - 'recipe:css-property'
+ - recipe:css-property
- size
+browser-compat: css.properties.min-height
translation_of: Web/CSS/min-height
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<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>
+**`min-height`** は [CSS](/ja/docs/Web/CSS) のプロパティで、要素の最小幅を設定します。これは {{cssxref("height")}} プロパティの[使用値](/ja/docs/Web/CSS/used_value)が、`min-height` で指定した値を下回ることを防ぎます。
-<div>{{EmbedInteractiveExample("pages/css/min-height.html")}}</div>
+{{EmbedInteractiveExample("pages/css/min-height.html")}}
-<div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div>
+`min-height` の値が {{cssxref("max-height")}} および {{cssxref("height")}} の値より大きい場合は、`min-height` の値が要素の幅になります。
-<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; 値 */
+```css
+/* <length> 値 */
min-height: 3.5em;
-/* &lt;percentage&gt; 値 */
+/* <percentage> 値 */
min-height: 10%;
/* キーワード値 */
@@ -40,79 +40,52 @@ min-height: fit-content(20em);
/* グローバル値 */
min-height: inherit;
min-height: initial;
+min-height: revert;
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>
+- {{cssxref("&lt;length&gt;")}}
+ - : `min-height` を絶対的な値で定義します。
+- {{cssxref("&lt;percentage&gt;")}}
+ - : `min-height` を包含ブロックの高さに対するパーセント値で定義します。
+- `auto`
+ - : ブラウザーが指定された要素の `min-height` を計算して選択します。
+- `max-content`
+ - : 内容物が推奨する `min-height` です。
+- `min-content`
+ - : 内容物の最小の `min-height` です。
+- `fit-content({{cssxref("&lt;length-percentage&gt;")}})`
+ - : 利用可能な空白を指定された引数で置き換えた `fit-content` 式を使用します。すなわち、 `min(max-content, max(min-content, 引数))` です。
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+## 公式定義
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<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>
+### min-height の設定
-<pre class="brush:css; notranslate">table { min-height: 75%; }
+```css
+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>
+```
+
+## 仕様書
+
+{{Specifications}}
+
+## ブラウザーの互換性
+
+{{Compat("css.properties.min-height")}}
+
+## 関連情報
+
+- [ボックスモデル](/ja/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model), {{cssxref("box-sizing")}}
+- {{cssxref("height")}}, {{cssxref("max-height")}}