Web4College

CSS border-block-end property

src

Description

CSS border-block-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 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 : border-block-end-width    border-block-end-style    border-block-end-color

Property values

border-block-end-width

mediumDefault

medium value represents medium sized border. thin ≤ medium ≤ thick

border-block-end-width: medium;
Try it

thin

thin value defines thin line border.

border-block-end-width: thin;
Try it

thick

thick value defines a thick line border.

border-block-end-width: thick;
Try it

+ve length

10

length defines the line width of border. The used units might be px, in, em, pt.

border-block-end-width: 10px;
Try it

border-block-end-style

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;
Try it

hidden

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

border-block-end-style: hidden;
Try it

dashed

The border consists of a series of square shaped dashes.

border-block-end-style: dashed;
Try it

dotted

The border consists of a series of round dots.

border-block-end-style: dotted;
Try it

solid

The border consists of a solid line.

border-block-end-style: solid;
Try it

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;
Try it

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;
Try it

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;
Try it

border-block-end-color

currentColorDefault

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

border-block-end-color: currentColor;
Try it

color-name

The following demo represents skyblue color for the border.

border-block-end-color: skyblue;
Try it

rgb value

#000000

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

border-block-end-color: rgb(255,0,0);
Try it

hexadecimal value

#000000

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

border-block-end-color: #0000ff;
Try it

Applicable to

It applies to all elements