From 12dcd99f1954265d69c461fe2c2a477b52ce735c Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 17 Oct 2021 22:55:22 +0900 Subject: CSS Box Alignment の変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/row-gap/index.html | 154 ------------------------------------ 1 file changed, 154 deletions(-) delete mode 100644 files/ja/web/css/row-gap/index.html (limited to 'files/ja/web/css/row-gap/index.html') diff --git a/files/ja/web/css/row-gap/index.html b/files/ja/web/css/row-gap/index.html deleted file mode 100644 index f67c07b0ec..0000000000 --- a/files/ja/web/css/row-gap/index.html +++ /dev/null @@ -1,154 +0,0 @@ ---- -title: row-gap (grid-row-gap) -slug: Web/CSS/row-gap -tags: - - CSS - - CSS Flexible Boxes - - CSS Grid - - CSS Property - - Reference - - recipe:css-property - - row-gap -translation_of: Web/CSS/row-gap ---- -
{{CSSRef}}
- -

row-gapCSS のプロパティで、要素のグリッド行の間のすき間 ({{glossary("gutters", "溝")}}) の寸法を定義します。

- -
{{EmbedInteractiveExample("pages/css/row-gap.html")}}
- -

構文

- -
/* <length> 値 */
-row-gap: 20px;
-row-gap: 1em;
-row-gap: 3vmin;
-row-gap: 0.5cm;
-
-/* <percentage> 値 */
-row-gap: 10%;
-
-/* Global values */
-row-gap: inherit;
-row-gap: initial;
-row-gap: unset;
-
- -

- -
-
<length-percentage>
-
行を隔てる溝の幅です。 {{CSSxRef("<percentage>")}} 値は要素の寸法に対する相対値です。
-
- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

フレックスレイアウト

- -

HTML

- -
<div id="flexbox">
-  <div></div>
-  <div></div>
-  <div></div>
-  <div></div>
-  <div></div>
-  <div></div>
-</div>
-
- -

CSS

- -
#flexbox {
-  display: flex;
-  flex-wrap: wrap;
-  width: 300px;
-  row-gap: 20px;
-}
-
-#flexbox > div {
-  border: 1px solid green;
-  background-color: lime;
-  flex: 1 1 auto;
-  width: 100px;
-  height: 50px;
-}
-
- -

結果

- -

{{EmbedLiveSample('Flex_layout', "auto", "120px")}}

- -

グリッドレイアウト

- -

HTML

- -
<div id="grid">
-  <div></div>
-  <div></div>
-  <div></div>
-</div>
- -

CSS

- -
#grid {
-  display: grid;
-  height: 200px;
-  grid-template-columns: 200px;
-  grid-template-rows: repeat(3, 1fr);
-  row-gap: 20px;
-}
-
-#grid > div {
-  border: 1px solid green;
-  background-color: lime;
-}
-
- -

結果

- -

{{EmbedLiveSample('Grid_layout', 'auto', 120)}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("CSS3 Box Alignment", "#propdef-row-gap", "row-gap")}}{{Spec2("CSS3 Box Alignment")}}初回定義
- -

ブラウザーの互換性

- -

フレックスレイアウトでの対応

- -

{{Compat("css.properties.row-gap.flex_context")}}

- -

グリッドレイアウトでの対応

- -

{{Compat("css.properties.row-gap.grid_context")}}

- -

関連情報

- - -- cgit v1.2.3-54-g00ecf