border-inline-start-style
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2021.
Please take two minutes to fill out our short survey.
border-inline-start-style
は CSS のプロパティで、要素の論理的なブロックの先頭側の境界のスタイルを定義し、それが要素の書字方向やテキストの方向に応じて物理的な境界のスタイルに対応づけられます。これは border-top-style
、border-right-style
、border-bottom-style
、border-left-style
の何れかに対応し、どれに対応するかは writing-mode
、direction
、text-orientation
で定義された値によって決まります。
試してみましょう
border-inline-start-style: dotted;
writing-mode: horizontal-tb;
border-inline-start-style: dotted;
writing-mode: vertical-rl;
border-inline-start-style: groove;
writing-mode: horizontal-tb;
direction: rtl;
<section class="default-example" id="default-example">
<div class="transition-all" id="example-element">
This is a box with a border around it.
</div>
</section>
#example-element {
background-color: #eee;
color: #000;
border: 0.75em solid;
padding: 0.75em;
width: 80%;
height: 100px;
unicode-bidi: bidi-override;
}
構文
css
/* <'border-style'> 値 */
border-inline-start-style: dashed;
border-inline-start-style: dotted;
border-inline-start-style: revert;
border-inline-start-style: groove;
関連するプロパティとしては、 border-block-start-style
、border-block-end-style
、border-inline-end-style
が要素の他の境界のスタイルを定義します。
初期値 | none |
---|---|
適用対象 | すべての要素 |
継承 | なし |
計算値 | 指定通り |
アニメーションの種類 | 離散値 |
値
<'border-style'>
-
境界の線のスタイルです。
border-style
を参照してください。
公式定義
初期値 | none |
---|---|
適用対象 | すべての要素 |
継承 | なし |
計算値 | 指定通り |
アニメーションの種類 | 離散値 |
形式文法
例
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: 5px solid blue;
border-inline-start-style: dashed;
}
仕様書
Specification |
---|
CSS Logical Properties and Values Level 1 # border-style |
ブラウザーの互換性
関連情報
- このプロパティは
border-top-style
、border-right-style
、border-bottom-style
、border-left-style
のうちの 1 つに対応づけられます writing-mode
、direction
、text-orientation