CSS border-bottom-style property

Description

CSS border-bottom-style property defines style for the bottom side border of a block.

Syntax

border-bottom-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 top border are also ignored i.e. 0px border.

border-bottom-style: none;

hidden

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

border-bottom-style: hidden;

dashed

The bottom border consists of a series of square shaped dashes.

border-bottom-style: dashed;

dotted

The bottom border consists of a series of round dots.

border-bottom-style: dotted;

solid

The bottom border consists of a solid line.

border-bottom-style: solid;

double

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

border-bottom-style: double;

ridge

The content seems to be coming out of the canvas. It is obtained by producing the box-shadow from the two colors that are lighter and darker than the border-color.

The outer side of the bottom border is darker than the inner side of the bottom border.

border-bottom-style: ridge;

groove

The content seems to be going into the canvas. It is obtained by producing the box-shadow from the two colors that are lighter and darker than the border-color.

The inner side of the bottom border is darker than the outer side of the bottom border.

border-bottom-style: groove;

inset

The color of top and left borders is darker than border-color but the color of right and bottom borders is the same as border-color.

The effect of inset value can be observed in border.

border-bottom-style: inset;

outset

The color of top and left sides is the same as border-left but the color of right and bottom sides is darker than border-color.

The effect of outset value can be observed in border.

border-bottom-style: outset;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
We are learning border-bottom-style property
×

Ctrl+D