O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

border-bottom

Values:

<'border-width'> || <'border-style'> || <color>

Initial value:

Not defined for shorthand properties

Applies to:

All elements

Inherited:

No

Computed value:

See individual properties

Description:

A shorthand property that defines the width, color, and style of the bottom border of an element. As with border, omission of a border style will result in no border appearing.

Examples:

ul {border-bottom: 0.5in groove green;}
a:active {border-bottom: purple 2px dashed;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required