From 60367cb41ff3291f2d5c1a03feeb26645c7cd336 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 16 Nov 2021 23:03:12 +0900 Subject: CSS 論理的プロパティのボックスモデルのプロパティを変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/margin-block/index.html | 106 ------------------------------- files/ja/web/css/margin-block/index.md | 106 +++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 106 deletions(-) delete mode 100644 files/ja/web/css/margin-block/index.html create mode 100644 files/ja/web/css/margin-block/index.md (limited to 'files/ja/web/css/margin-block') diff --git a/files/ja/web/css/margin-block/index.html b/files/ja/web/css/margin-block/index.html deleted file mode 100644 index c68a537ebe..0000000000 --- a/files/ja/web/css/margin-block/index.html +++ /dev/null @@ -1,106 +0,0 @@ ---- -title: margin-block -slug: Web/CSS/margin-block -tags: - - CSS - - CSS Logical Property - - CSS Property - - CSS プロパティ - - CSS 論理的プロパティ - - Experimental - - Reference - - margin-block - - margin-block-end - - margin-block-start - - 一括指定プロパティ -translation_of: Web/CSS/margin-block ---- -
{{CSSRef}}{{SeeCompatTable}}
- -

The margin-blockCSS のプロパティで、論理的なブロックの先頭と末尾のマージンを設定します。これは要素の書字方向やテキストの向きに応じて物理的なマージンに変換されます。

- -
/* <length> 値 */
-margin-block: 10px 20px;  /* 絶対的な長さ */
-margin-block: 1em 2em;   /* テキストの大きさに対する相対値 */
-margin-block: 5% 2%;    /* 直近のブロックコンテナーの大きさに対する相対値 */
-margin-block: 10px; /* 先頭と末尾の両方を設定 */
-
-/* キーワード値 */
-margin-block: auto;
-
-/* グローバル値 */
-margin-block: inherit;
-margin-block: initial;
-margin-block: unset;
-
- -

これらの値は、 {{CSSxRef("margin-top")}} と {{CSSxRef("margin-bottom")}}、または {{CSSxRef("margin-right")}} と {{CSSxRef("margin-left")}} プロパティに、 {{CSSxRef("writing-mode")}}, {{CSSxRef("direction")}}, {{CSSxRef("text-orientation")}} で定義された値にしたがって対応します。

- -

値は {{CSSxRef("margin-block-start")}} と {{CSSxRef("margin-block-end")}} で個別に設定することができます。インライン方向のプロパティは {{CSSxRef("margin-inline")}} で、 {{CSSxRef("margin-inline-start")}} と {{CSSxRef("margin-inline-end")}} を設定します。

- -

構文

- -

- -

margin-block プロパティは、 {{CSSxRef("margin-left")}} プロパティと同じ値を取ります。

- -

形式文法

- -{{CSSSyntax}} - -

- -

HTML

- -
<div>
-  <p class="exampleText">Example text</p>
-</div>
-
- -

CSS

- -
div {
-  background-color: yellow;
-  width: 120px;
-  height: 120px;
-}
-
-.exampleText {
-  writing-mode: vertical-rl;
-  margin-block: 20px 40px;
-  background-color: #c8c800;
-}
- -

{{EmbedLiveSample("Example", 140, 140)}}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("CSS Logical Properties", "#propdef-margin-block", "margin-block")}}{{Spec2("CSS Logical Properties")}}初回定義
- -

{{CSSInfo}}

- -

ブラウザーの互換性

- -

{{Compat("css.properties.margin-block")}}

- -

関連情報

- - diff --git a/files/ja/web/css/margin-block/index.md b/files/ja/web/css/margin-block/index.md new file mode 100644 index 0000000000..c68a537ebe --- /dev/null +++ b/files/ja/web/css/margin-block/index.md @@ -0,0 +1,106 @@ +--- +title: margin-block +slug: Web/CSS/margin-block +tags: + - CSS + - CSS Logical Property + - CSS Property + - CSS プロパティ + - CSS 論理的プロパティ + - Experimental + - Reference + - margin-block + - margin-block-end + - margin-block-start + - 一括指定プロパティ +translation_of: Web/CSS/margin-block +--- +
{{CSSRef}}{{SeeCompatTable}}
+ +

The margin-blockCSS のプロパティで、論理的なブロックの先頭と末尾のマージンを設定します。これは要素の書字方向やテキストの向きに応じて物理的なマージンに変換されます。

+ +
/* <length> 値 */
+margin-block: 10px 20px;  /* 絶対的な長さ */
+margin-block: 1em 2em;   /* テキストの大きさに対する相対値 */
+margin-block: 5% 2%;    /* 直近のブロックコンテナーの大きさに対する相対値 */
+margin-block: 10px; /* 先頭と末尾の両方を設定 */
+
+/* キーワード値 */
+margin-block: auto;
+
+/* グローバル値 */
+margin-block: inherit;
+margin-block: initial;
+margin-block: unset;
+
+ +

これらの値は、 {{CSSxRef("margin-top")}} と {{CSSxRef("margin-bottom")}}、または {{CSSxRef("margin-right")}} と {{CSSxRef("margin-left")}} プロパティに、 {{CSSxRef("writing-mode")}}, {{CSSxRef("direction")}}, {{CSSxRef("text-orientation")}} で定義された値にしたがって対応します。

+ +

値は {{CSSxRef("margin-block-start")}} と {{CSSxRef("margin-block-end")}} で個別に設定することができます。インライン方向のプロパティは {{CSSxRef("margin-inline")}} で、 {{CSSxRef("margin-inline-start")}} と {{CSSxRef("margin-inline-end")}} を設定します。

+ +

構文

+ +

+ +

margin-block プロパティは、 {{CSSxRef("margin-left")}} プロパティと同じ値を取ります。

+ +

形式文法

+ +{{CSSSyntax}} + +

+ +

HTML

+ +
<div>
+  <p class="exampleText">Example text</p>
+</div>
+
+ +

CSS

+ +
div {
+  background-color: yellow;
+  width: 120px;
+  height: 120px;
+}
+
+.exampleText {
+  writing-mode: vertical-rl;
+  margin-block: 20px 40px;
+  background-color: #c8c800;
+}
+ +

{{EmbedLiveSample("Example", 140, 140)}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS Logical Properties", "#propdef-margin-block", "margin-block")}}{{Spec2("CSS Logical Properties")}}初回定義
+ +

{{CSSInfo}}

+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.margin-block")}}

+ +

関連情報

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