O'Reilly logo

CSS Quick Syntax Reference by Mikael Olsson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 17

image

Border

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 17-1. The hidden value removes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required