border-inline-start
        
        
          
                Baseline
                
                  Widely available
                
                
              
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.
border-inline-start は CSS のプロパティで、個々の論理的なインライン方向の先頭側境界のプロパティ値を、スタイルシート内の単一の場所で設定するための一括指定プロパティです。
試してみましょう
border-inline-start: solid;
writing-mode: horizontal-tb;
border-inline-start: dashed red;
writing-mode: vertical-rl;
border-inline-start: 1rem solid;
writing-mode: horizontal-tb;
direction: rtl;
<section class="default-example" id="default-example">
  <div class="transition-all" id="example-element">
    これは周囲に境界線があるボックスです。
  </div>
</section>
#example-element {
  background-color: #eee;
  color: #8b008b;
  padding: 0.75em;
  width: 80%;
  height: 100px;
  unicode-bidi: bidi-override;
}
構成要素のプロパティ
このプロパティは以下の CSS プロパティの一括指定です。
構文
css
border-inline-start: 1px;
border-inline-start: 2px dotted;
border-inline-start: medium dashed green;
/* グローバル値 */
border-inline-start: inherit;
border-inline-start: initial;
border-inline-start: revert;
border-inline-start: revert-layer;
border-inline-start: unset;
対応づけられる物理的な境界は、書字方向やテキストの向きによって決まります。これは border-top、border-right、border-bottom、border-left の何れかに対応し、どれに対応するかは writing-mode、direction、text-orientation で定義された値によって決まります。
関連するプロパティとしては、 border-block-start、border-block-end、border-inline-end が要素の他の境界を定義します。
値
border-inline-start は以下の値の内の 1 つ以上を任意の順序で指定します。
- <'border-width'>
- 
境界の幅です。 border-widthを参照してください。
- <'border-style'>
- 
境界線のスタイルです。 border-styleを参照してください。
- <color>
- 
境界線の色です。 
公式定義
| 初期値 | 一括指定の次の各プロパティとして 
 | 
|---|---|
| 適用対象 | すべての要素 | 
| 継承 | なし | 
| 計算値 | 一括指定の次の各プロパティとして 
 | 
| アニメーションの種類 | 一括指定の次の各プロパティとして 
 | 
形式文法
border-inline-start =
<line-width> ||
<line-style> ||
<color>
<line-width> =
<length [0,∞]> |
thin |
medium |
thick
<line-style> =
none |
hidden |
dotted |
dashed |
solid |
double |
groove |
ridge |
inset |
outset
例
>HTML
html
<div>
  <p class="exampleText">テキストの例</p>
</div>
CSS
css
div {
  background-color: yellow;
  width: 120px;
  height: 120px;
}
.exampleText {
  writing-mode: vertical-rl;
  border-inline-start: 5px dashed blue;
}
仕様書
| Specification | 
|---|
| CSS Logical Properties and Values Level 1> # border-shorthands> | 
ブラウザーの互換性
Loading…
関連情報
- CSS 論理的プロパティと値
- このプロパティは border-top、border-right、border-bottom、border-leftのうちの 1 つに対応づけられます。
- writing-mode、- direction、- text-orientation