A border is the optional line around an element’s padding. Think of it as a frame: it surrounds the content and padding, then separates them from the margin and nearby page content. section 9.1 section 9.8
Build a border rule from three small choices:
- Width: choose a measurement such as px, em, rem, vw, or vh, or use thin, medium, or thick. section 9.8
- Style: choose dotted, dashed, solid, double, groove, ridge, inset, or outset. section 9.8
- Color: choose a CSS color name. section 9.8
A simple framed pullquote
.pullquote { border: 1px solid black; } This shorthand sets the border’s width, style, and color in one line. The result is a thin, solid black frame around the pullquote. section 9.8
Use the element-box figure to see how the border sits between padding and margin. section 9.1




