From 097e0c985e82e73460e6c0a76f3b901ce3af98f7 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Wed, 17 Nov 2021 00:45:11 +0900 Subject: CSS 論理的プロパティと値のボックスモデルに関するプロパティを更新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 2021/11/15 時点の英語版に同期 --- files/ja/web/css/margin-inline-end/index.md | 112 +++++++++++++--------------- 1 file changed, 52 insertions(+), 60 deletions(-) (limited to 'files/ja/web/css/margin-inline-end') diff --git a/files/ja/web/css/margin-inline-end/index.md b/files/ja/web/css/margin-inline-end/index.md index bfbcba1187..6f90efed5e 100644 --- a/files/ja/web/css/margin-inline-end/index.md +++ b/files/ja/web/css/margin-inline-end/index.md @@ -3,28 +3,27 @@ title: margin-inline-end slug: Web/CSS/margin-inline-end tags: - CSS - - CSS Logical Property - - CSS Property - - CSS プロパティ - CSS 論理的プロパティ - - Experimental + - CSS プロパティ + - 実験的 - NeedsContent - - Reference + - リファレンス - margin-inline - margin-inline-end + - recipe:css-property +browser-compat: css.properties.margin-inline-end translation_of: Web/CSS/margin-inline-end --- -
{{CSSRef}}{{SeeCompatTable}}
+{{CSSRef}} -

margin-inline-endCSS のプロパティで、要素のインライン方向の論理的な末尾側のマージンを定義し、それが要素の書字方向やテキストの方向に応じて物理的なマージンに対応付けられます。これは {{cssxref("margin-top")}}, {{cssxref("margin-right")}}, {{cssxref("margin-bottom")}}, {{cssxref("margin-left")}} の何れかのプロパティに対応し、どれに対応するかは {{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}} で定義された値によって決まります。

+**`margin-inline-end`** は [CSS](/ja/docs/Web/CSS) のプロパティで、要素のインライン方向の論理的な末尾側のマージンを定義し、それが要素の書字方向やテキストの方向に応じて物理的なマージンに対応づけられます。これは {{cssxref("margin-top")}}, {{cssxref("margin-right")}}, {{cssxref("margin-bottom")}}, {{cssxref("margin-left")}} の何れかのプロパティに対応し、どれに対応するかは {{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}} で定義された値によって決まります。 -
{{EmbedInteractiveExample("pages/css/margin-inline-end.html")}}
+{{EmbedInteractiveExample("pages/css/margin-inline-end.html")}} - +## 構文 -

構文

- -
/* <length> 値 */
+```css
+/*  値 */
 margin-inline-end: 10px;   /* 絶対的な長さ */
 margin-inline-end: 1em;    /* テキストの大きさに対する相対値 */
 margin-inline-end: 5%;     /* 直近のブロックコンテナーの大きさに対する相対値 */
@@ -35,33 +34,40 @@ margin-inline-end: auto;
 /* グローバル値 */
 margin-inline-end: inherit;
 margin-inline-end: initial;
+margin-inline-end: revert;
 margin-inline-end: unset;
-
+``` + +関連プロパティとして、要素の他のマージンを定義する {{cssxref("margin-block-start")}}, {{cssxref("margin-block-end")}}, {{cssxref("margin-inline-start")}} があります。 -

関連プロパティとして、要素の他のマージンを定義する {{cssxref("margin-block-start")}}, {{cssxref("margin-block-end")}}, {{cssxref("margin-inline-start")}} があります。

+### 値 -

{{cssinfo}}

+`margin-inline-end` プロパティは {{cssxref("margin-left")}} プロパティと同じ値を取ります。 -

+## 公式定義 -

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

+{{cssinfo}} -

形式文法

+## 形式文法 {{csssyntax}} -

+## 例 -

HTML

+

インライン方向の末尾側のマージンの設定

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

CSS

+```html +
+

Example text

+
+``` -
div {
+#### CSS
+
+```css
+div {
   background-color: yellow;
   width: 120px;
   height: 120px;
@@ -71,37 +77,23 @@ margin-inline-end: unset;
   writing-mode: vertical-lr;
   margin-inline-end: 20px;
   background-color: #c8c800;
-}
- -

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

- -

仕様書

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

ブラウザーの互換性

- -

{{Compat("css.properties.margin-inline-end")}}

- -

関連情報

- - +} +``` + +#### 結果 + +{{EmbedLiveSample("Setting_inline_end_margin", 140, 140)}} + +## 仕様書 + +{{Specifications}} + +## ブラウザーの互換性 + +{{Compat}} + +## 関連情報 + +- {{cssxref("margin-inline-start")}} +- 対応づけ先の物理的なプロパティ: {{cssxref("margin-top")}}, {{cssxref("margin-right")}}, {{cssxref("margin-bottom")}}, {{cssxref("margin-left")}} +- {{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}} -- cgit v1.2.3-54-g00ecf