Name

border-bottom

Values:

[ <border-width> || <border-style> || <border-color> ] | inherit

Initial value:

Not defined for shorthand properties.

Applies to:

All elements.

Inherited:

No.

Computed value:

See individual properties (border-width, etc.).

Description:

This shorthand property 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;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Get CSS Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.