- `border: 3px solid pink;` – This is how you make borders around items. First, notice the border goes all the way to the edge of the page. That's because `h1`s take the whole line even though they don't necessarily have text to fill that. We'll address this later when we talk about the block model but it's good to know that now. So notice we have three values there for the one property: `3px`, `solid`, and `pink`. These are all separate and could be put in any order (ie you could say `border: solid pink 3px;` and it's the same.) The `3px` represents the thickness of the border, the `solid` represents that it's a solid line (it could be `dotted`, `dashed`, `double`, or a few others) and `pink` represents the color of the border. This actually an example of a combined CSS property, a shortcut. You could separate this out as `border-style: solid;`, `border-color: pink;`, and `border-width: 3px;`. You'll see a lot of these in CSS.
0 commit comments