CSS border-block-end-style property

Description

CSS border-block-end-style property defines style for the end side of a block. The selection of end side depends upon the writing-mode.

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

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

Change the direction of flow of text.

horizontal-tb vertical-lr vertical-rl

Syntax

border-block-end-style : none | hidden | dashed | solid | dotted | double | ridge | groove | inset | outset

Property values

noneDefault

There is no style. In this case, the color and width of border are also ignored i.e. 0px border.

border-block-end-style: none;

hidden

It is same as 'none' but resolve to different results for the border-collapse property in tables.

border-block-end-style: hidden;

dashed

The border consists of a series of square shaped dashes.

border-block-end-style: dashed;

dotted

The border consists of a series of round dots.

border-block-end-style: dotted;

solid

The border consists of a solid line.

border-block-end-style: solid;

double

The border consists of two lines. The total border-width equals to the two lines and space between them.

border-block-end-style: double;

ridge

The content seems to be coming out of the canvas. The half outer side of border is darker than border-block-end-color.

border-block-end-style: ridge;

groove

The content seems to be going into the canvas. The half inner side of border is darker than border-block-end-color.

border-block-end-style: groove;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
arrow
Check the behavior of border-block-end-style for different values of writing mode.
×

Ctrl+D