CSS border-inline-end-color property

Description

CSS border-inline-end-color is a logical property that defines color for the end side of a block. The selection of end side depends upon the writing-mode.

  • The end side represents right side for the horizontal-tb writing-mode.

  • The end side represents bottom or top side for the vertical-lr or vertical-rl writing-mode respectively.

Change the direction of flow of text.

horizontal-tb vertical-lr vertical-rl

Syntax

border-inline-end-color : currentColor | color-name | rgb value | hexadecimal value

Property values

currentColorDefault

currentColor keyword represents the same color for the border as of text color.

border-inline-end-color: currentColor;

color-name

The following demo represents skyblue color for border.

border-inline-end-color: skyblue;

rgb value

It represents rgb value of a color. The rgb value of red color for the border is given below.

border-inline-end-color: rgb(255,0,0);

hexadecimal value

It represents hexadecimal notation of red color. The hexadecimal notation of blue color for the border is given below.

border-inline-end-color: #0000ff;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
Check the behavior of border-inline-end-color for different value of writing mode.
×

Ctrl+D