border-inline-end

border-inline-endCSS のプロパティで、個々の論理的なインライン方向の末尾側境界のプロパティ値を、スタイルシート内の単一の場所で設定するための一括指定プロパティです。

試してみましょう

構成要素のプロパティ

このプロパティは以下の CSS プロパティの一括指定です。

構文

css
border-inline-end: 1px;
border-inline-end: 2px dashed;
border-inline-end: medium dashed blue;

/* グローバル値 */
border-inline-end: inherit;
border-inline-end: initial;
border-inline-end: revert;
border-inline-end: unset;

border-inline-end が対応づけられる物理的な境界は、書字方向やテキストの向きによって決まります。これは border-topborder-rightborder-bottomborder-left の何れかに対応し、どれに対応するかは writing-modedirectiontext-orientation で定義された値によって決まります。

関連するプロパティとしては、 border-block-startborder-block-endborder-inline-start が要素の他の境界を定義します。

border-inline-end は以下の値のうちの1つ以上を任意の順序で指定します。

<'border-width'>

境界の幅です。 border-width を参照してください。

<'border-style'>

境界線のスタイルです。 border-style を参照してください。

<'color'>

境界の色です。 color を参照してください。

公式定義

初期値一括指定の次の各プロパティとして
適用対象すべての要素
継承なし
計算値一括指定の次の各プロパティとして
アニメーションの種類一括指定の次の各プロパティとして

形式文法

border-inline-end = 
<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">Example text</p>
</div>

CSS

css
div {
  background-color: yellow;
  width: 120px;
  height: 120px;
}

.exampleText {
  writing-mode: vertical-rl;
  border-inline-end: 5px dashed blue;
}

仕様書

Specification
CSS Logical Properties and Values Level 1
# border-shorthands

ブラウザーの互換性

BCD tables only load in the browser

関連情報