CSS border-inline-end property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerNot supported
EdgeNot supported
OperaFully supports
Description
CSS border-inline-end is a logical property that defines width, style, and color for the end side border 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 : border-inline-end-width border-inline-end-style border-inline-end-color
Property values
border-inline-end-width
mediumDefault
-
medium value represents medium sized border. thin ≤ medium ≤ thick
- Try it
border-inline-end-width: medium; +ve length
-
lenght defines the line width of border. The used units might be px, in, em, pt.
- Try it
border-inline-end-width: 10px;
border-inline-end-style
noneDefault
-
There is no style. In this case, the color and width of border are also ignored i.e. 0px border.
- Try it
border-inline-end-style: none; hidden
-
It is same as 'none' but resolve to different results for the border-collapse property in tables.
- Try it
border-inline-end-style: hidden; dashed
-
The border consists of a series of square shaped dashes.
- Try it
border-inline-end-style: dashed; double
-
The border consists of two lines. The total border-width equals to the two lines and space between them.
- Try it
border-inline-end-style: double; ridge
-
The content seems to be coming out of the canvas. The half outer side of border is darker than border-inline-end-color.
- Try it
border-inline-end-style: ridge; groove
-
The content seems to be going into the canvas. The half inner side of border is darker than border-inline-end-color.
- Try it
border-inline-end-style: groove;
border-inline-end-color
currentColorDefault
-
currentColor keyword represents the same color for the border as of text color.
- Try it
border-inline-end-color: currentColor; color-name
-
The following demo represents skyblue color for border.
- Try it
border-inline-end-color: skyblue; rgb value
-
It represents rgb value of a color. The hexadecimal value of red color for the border is given below.
- Try it
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.
- Try it
border-inline-end-color: #0000ff;
Applicable to
It applies to all elements