Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

border-bottom

3 tags 1 category

The border-bottom CSS shorthand property sets an element’s bottom border. It sets the values of border-bottom-width, border-bottom-style and border-bottom-color.

As with all shorthand properties, border-bottom always sets the values of all of the properties that it can set, even if they are not specified. It sets those that are not specified to their default values. Consider the following code:

It is actually the same as this one:

The value of border-bottom-style given before border-bottom is ignored. Since the default value of border-bottom-style is none, not specifying the border-style part results in no border.

Syntax example: border-bottom: 1px;

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…