From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/padding-block-start/index.html | 115 ++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 files/ja/web/css/padding-block-start/index.html (limited to 'files/ja/web/css/padding-block-start/index.html') diff --git a/files/ja/web/css/padding-block-start/index.html b/files/ja/web/css/padding-block-start/index.html new file mode 100644 index 0000000000..d937f99753 --- /dev/null +++ b/files/ja/web/css/padding-block-start/index.html @@ -0,0 +1,115 @@ +--- +title: padding-block-start +slug: Web/CSS/padding-block-start +tags: + - CSS + - CSS Logical Property + - CSS Property + - Experimental + - Reference + - padding-block + - padding-block-start + - 'recipe:css-property' +translation_of: Web/CSS/padding-block-start +--- +
{{CSSRef}}
+ +

padding-block-startCSS のプロパティで、要素のブロック方向の論理的な先頭側のパディングを定義し、それが要素の書字方向やテキストの方向に応じて物理的なマージンに対応付けられます。

+ +
{{EmbedInteractiveExample("pages/css/padding-block-start.html")}}
+ + + +

構文

+ +
/* <length> 値 */
+padding-block-start: 10px;      /* 絶対的な長さ */
+padding-block-start: 1em;       /* テキストの大きさに対する相対値 */
+
+/* パーセント値 */
+padding-block-start: 5%;        /* ブロックコンテナーの幅に対する割合のパディング */
+
+/* グローバル値 */
+padding-block-start: inherit;
+padding-block-start: initial;
+padding-block-start: unset;
+
+ +

+ +

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

+ +

解説

+ +

これは {{cssxref("padding-top")}}, {{cssxref("padding-right")}}, {{cssxref("padding-bottom")}}, {{cssxref("padding-left")}} の何れかのプロパティに対応し、どれに対応するかは {{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}} で定義された値によって決まります。

+ +

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

+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +
{{csssyntax}}
+ +

+ +

縦書きテキストにおけるブロック方向の先頭のパディングの設定

+ +

HTML

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

CSS

+ +
div {
+  background-color: yellow;
+  width: 120px;
+  height: 120px;
+}
+
+.exampleText {
+  writing-mode: vertical-lr;
+  padding-block-start: 20px;
+  background-color: #C8C800;
+}
+ +

結果

+ +

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

+ +

仕様書

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

ブラウザーの互換性

+ + + +

{{Compat("css.properties.padding-block-start")}}

+ +

関連情報

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