
Of course, the exact position of that alignment will depend on what elements are in the line and how tall they are.
Computers create colors by combining different levels of red, green, and blue, which is why color in computers is often referred to as RGB color. In fact, if you were to open up a computer monitor, or even a television, and you got far enough into the projection tube, you would discover that there are three "guns." (Remember, however, that actually looking for these guns will pretty much void your monitor's warranty.)
The result is that the first paragraph has a gray border, having taken the value gray from the foreground color of the paragraph itself. The second paragraph, on the other hand, has a black border because that color was explicitly assigned using border-color.
While it's nice to have shorthand properties like border-color and border-style, they aren't always a whole lot of help. For example, you might want to set all H1
Using any one of these properties allows you to set a margin on thatside only, without directly affecting any of the other margins.
It's possible to use more than one of these single-sideproperties in a single rule; for example:
H2 {margin-left: 3em; margin-bottom: 2em; margin-right: 0; margin-top: 0;}As we see in Figure 7-15, the margins were set as wewanted them.