border-inline-width
border-inline-width は CSS のプロパティで、要素の論理的なインライン方向の境界の幅を定義し、それが要素の書字方向やテキストの方向に応じて物理的な境界の幅に対応づけられます。これは border-top-width と border-bottom-width、または border-left-width と border-right-width の組み合わせのどちらかに対応し、どちらに対応するかは writing-mode、direction、text-orientation で定義された値によって決まります。
試してみましょう
他の方向の境界の幅については border-block-width で設定することができ、これは border-block-start-width および border-block-end-width を設定することができます。
構文
css
/* <'border-width'> 値 */
border-inline-width: 5px 10px;
border-inline-width: 5px;
border-inline-width: thick;
/* グローバル値 */
border-inline-width: inherit;
border-inline-width: initial;
border-inline-width: revert;
border-inline-width: unset;
値
<'border-width'>-
境界の幅です。
border-widthを参照してください。
公式定義
形式文法
border-inline-width =
<'border-top-width'>{1,2}
例
HTML
html
<div>
<p class="exampleText">Example text</p>
</div>
CSS
css
div {
background-color: yellow;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: vertical-lr;
border: 1px solid blue;
border-inline-width: 5px 10px;
}
仕様書
| Specification |
|---|
| CSS Logical Properties and Values Level 1 # propdef-border-inline-width |
ブラウザーの互換性
BCD tables only load in the browser
関連情報
- このプロパティは
border-top-width、border-right-width、border-bottom-width、border-left-widthのうちの 1 つに対応します writing-mode、direction、text-orientation