© Mikael Olsson 2019
Mikael OlssonCSS3 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4903-1_17

17. Border

Mikael Olsson1 
(1)
Hammarland, Finland
 

The border properties are used to format the border around elements. They can be applied to any element and they do not inherit.

border-style

To make the border visible around an element, the border-style property has to be set to a value other than none, which is the default value.
border-style (1-4) | border-top-style |
border-right-style | border-bottom-style |
border-left-style :
  none | dashed | dotted | double | groove |
  hidden | inset | outset | ridge | solid
The solid border style is the one most commonly used, but there are several other options for displaying a border, as seen in Figure ...

Get CSS3 Quick Syntax Reference: A Pocket Guide to the Cascading Style Sheets Language 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.