CSS · Properties — CSS Backgrounds and Borders

border-style

The CSS border-style property. Initial value: border-top-style,border-right-style,border-bottom-style,border-left-style. Not inherited.

Syntax
border-style: <line-style>{1,4}

Example

Try it

Notes

Media: visual. Applies to: allElements. Computed value: border-top-style,border-right-style,border-bottom-style,border-left-style.

More in this group

background background-attachment background-origin background-position-x background-position-y border-bottom border-bottom-color border-bottom-left-radius

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course