border-inline-start-width
は CSS のプロパティで、要素の論理的なインライン方向の先頭側の境界の幅を定義し、それが要素の書字方向やテキストの方向に応じて物理的な境界の幅に対応付けられます。これは border-top-width
, border-right-width
, border-bottom-width
, border-left-width
の何れかに対応し、どれに対応するかは writing-mode
, direction
, text-orientation
で定義された値によって決まります。
このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 https://github.com/mdn/interactive-examples をクローンしてプルリクエストを送信してください。
構文
/* <'border-width'> 値 */
border-inline-start-width: 5px;
border-inline-start-width: thick;
関連するプロパティとしては、 border-block-start-color
, border-block-end-color
, border-inline-end-color
が要素の他の境界の幅を定義します。
初期値 | medium |
---|---|
適用対象 | すべての要素 |
継承 | なし |
パーセンテージ | logical-width of containing block |
計算値 | absolute length; 0 if the border style is none or hidden |
アニメーションの種類 | length |
値
<'border-width'>
- 境界の幅です。
border-width
を参照してください。
形式文法
例
HTML
<div>
<p class="exampleText">Example text</p>
</div>
CSS
div {
background-color: yellow;
width: 120px;
height: 120px;
}
.exampleText {
writing-mode: vertical-lr;
border: 1px solid blue;
border-inline-start-width: 5px;
}
仕様書
仕様書 | 状態 | 備考 |
---|---|---|
CSS Logical Properties and Values Level 1 border-inline-start-width の定義 |
編集者草案 | 初回定義 |
ブラウザーの互換性
BCD tables only load in the browser
このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 https://github.com/mdn/browser-compat-data をチェックアウトしてプルリクエストを送信してください。
関連情報
- このプロパティは
border-top-width
,border-right-width
,border-bottom-width
,border-left-width
のうちの1つに対応付けられます writing-mode
,direction
,text-orientation