← TechnologyThe essentials of

Border-color: four sides in one colour list

Publisher: ResumeMaker • 1 source

Published: 23 Oct 2026 08:23 · Updated: 23 Oct 2026 08:23

AI source check: 22 Oct 2026 16:54. This is not editorial approval.

In a few sentences

In brief

border-color accepts up to four values for border sides. With four, the order is top, right, bottom, left, as in other physical shorthands.

Useful to know

border-color accepts up to four values for border sides. With four, the order is top, right, bottom, left, as in other physical shorthands. [1]

Colour alone does not create a visible border when its style is none. Check border-style and border-width before changing the colour value.

Sources

For further detail and to check the information:

  1. [1] MDN — CSS border-color ↗