--- title: inset-block-end slug: Web/CSS/inset-block-end tags: - CSS - CSS Logical Property - CSS Property - Experimental - Reference - 'recipe:css-property' translation_of: Web/CSS/inset-block-end ---
inset-block-end は CSS のプロパティで、要素における末尾からの論理的なオフセットを定義し、要素の書字方向やテキストの向きに従って物理的な内部位置に対応付けられます。 {{cssxref("top")}}, {{cssxref("right")}}, {{cssxref("bottom")}}, {{cssxref("left")}} のいずれかのプロパティに、 {{cssxref("writing-mode")}}, {{cssxref("direction")}}, {{cssxref("text-orientation")}} で定義された値に従って対応します。
/* <length> 値 */ inset-block-end: 3px; inset-block-end: 2.4em; /* 包含ブロックの幅または高さに対する <percentage> 値 */ inset-block-end: 10%; /* キーワード値 */ inset-block-end: auto; /* グローバル値 */ inset-block-end: inherit; inset-block-end: initial; inset-block-end: unset;
inset-block-end プロパティは {{cssxref("left")}} プロパティと同じ値を取ります。
{{cssinfo}}
<div> <p class="exampleText">テキストの例</p> </div>
div {
background-color: yellow;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: vertical-rl;
position: relative;
inset-block-end: 20px;
background-color: #c8c800;
}
{{EmbedLiveSample("Setting_block_end_offset", 140, 140)}}
| 仕様書 | 状態 | 備考 |
|---|---|---|
| {{SpecName("CSS Logical Properties", "#propdef-inset-block-end", "inset-block-end")}} | {{Spec2("CSS Logical Properties")}} | 初回定義 |
{{Compat("css.properties.inset-block-end")}}