aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/margin-inline/index.md
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-16 23:03:12 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-28 02:23:38 +0900
commit60367cb41ff3291f2d5c1a03feeb26645c7cd336 (patch)
tree3f3584b14df1fcd22d34046051776f60fe40e347 /files/ja/web/css/margin-inline/index.md
parent7f9cc6de0a0d289fc95597089260abcdb5abcf8e (diff)
downloadtranslated-content-60367cb41ff3291f2d5c1a03feeb26645c7cd336.tar.gz
translated-content-60367cb41ff3291f2d5c1a03feeb26645c7cd336.tar.bz2
translated-content-60367cb41ff3291f2d5c1a03feeb26645c7cd336.zip
CSS 論理的プロパティのボックスモデルのプロパティを変換準備
Diffstat (limited to 'files/ja/web/css/margin-inline/index.md')
-rw-r--r--files/ja/web/css/margin-inline/index.md105
1 files changed, 105 insertions, 0 deletions
diff --git a/files/ja/web/css/margin-inline/index.md b/files/ja/web/css/margin-inline/index.md
new file mode 100644
index 0000000000..67f51f34b8
--- /dev/null
+++ b/files/ja/web/css/margin-inline/index.md
@@ -0,0 +1,105 @@
+---
+title: margin-inline
+slug: Web/CSS/margin-inline
+tags:
+ - CSS
+ - CSS Logical Property
+ - CSS Property
+ - CSS プロパティ
+ - CSS 論理的プロパティ
+ - Experimental
+ - Reference
+ - margin-inline
+ - margin-inline-end
+ - margin-inline-start
+translation_of: Web/CSS/margin-inline
+---
+<div>{{CSSRef}}{{SeeCompatTable}}</div>
+
+<p>The <strong><code>margin-inline</code></strong> は <a href="/ja/docs/Web/CSS" title="CSS">CSS</a> のプロパティで、論理的なインライン方向の先頭と末尾のマージンを設定します。これは要素の書字方向やテキストの向きに応じて物理的なマージンに変換されます。</p>
+
+<pre class="brush:css no-line-numbers">/* &lt;length&gt; 値 */
+margin-inline: 10px 20px; /* 絶対的な長さ */
+margin-inline: 1em 2em; /* テキストの大きさに対する相対値 */
+margin-inline: 5% 2%; /* 直近のブロックコンテナーの大きさに対する相対値 */
+margin-inline: 10px; /* 先頭と末尾の両方を設定 */
+
+/* キーワード値 */
+margin-inline: auto;
+
+/* グローバル値 */
+margin-inline: inherit;
+margin-inline: initial;
+margin-inline: unset;
+</pre>
+
+<p>これらの値は、 {{CSSxRef("margin-top")}} と {{CSSxRef("margin-bottom")}}、または {{CSSxRef("margin-right")}} と {{CSSxRef("margin-left")}} プロパティに、 {{CSSxRef("writing-mode")}}, {{CSSxRef("direction")}}, {{CSSxRef("text-orientation")}} で定義された値にしたがって対応します。</p>
+
+<p>値は {{CSSxRef("margin-inline-start")}} と {{CSSxRef("margin-inline-end")}} で個別に設定することができます。ブロック方向のプロパティは {{CSSxRef("margin-block")}} で、 {{CSSxRef("margin-block-start")}} と {{CSSxRef("margin-block-end")}} を設定します。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<h3 id="Values" name="Values">値</h3>
+
+<p><code>margin-inline</code> プロパティは、 {{CSSxRef("margin-left")}} プロパティと同じ値を取ります。</p>
+
+<h3 id="Formal_syntax" name="Formal_syntax">形式文法</h3>
+
+{{CSSSyntax}}
+
+<h2 id="Example" name="Example">例</h2>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush: html">&lt;div&gt;
+ &lt;p class="exampleText"&gt;Example text&lt;/p&gt;
+&lt;/div&gt;
+</pre>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css">div {
+ background-color: yellow;
+ width: 120px;
+ height: 120px;
+}
+
+.exampleText {
+ writing-mode: vertical-rl;
+ margin-inline: 20px 40px;
+ background-color: #c8c800;
+}</pre>
+
+<p>{{EmbedLiveSample("Example", 140, 140)}}</p>
+
+<h2 id="Specification" name="Specification">仕様書</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("CSS Logical Properties", "#propdef-margin-inline", "margin-inline")}}</td>
+ <td>{{Spec2("CSS Logical Properties")}}</td>
+ <td>初回定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<p>{{CSSInfo}}</p>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p>{{Compat("css.properties.margin-inline")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>対応する物理的プロパティ: {{CSSxRef("margin-top")}}, {{CSSxRef("margin-right")}}, {{CSSxRef("margin-bottom")}}, {{CSSxRef("margin-left")}}</li>
+ <li>{{CSSxRef("writing-mode")}}, {{CSSxRef("direction")}}, {{CSSxRef("text-orientation")}}</li>
+</ul>