Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N maroon and BODY elements to have a yellowbackground.
Styles such as these comprise the bulk of any embedded stylesheet -- style rules both simple and complex, short and long. Itwill be only rarely that you have a document where theSTYLE element does not contain any rules.
For those of you | O | P | Q | R | S | T | U | V | W | X | Y | Z
Copyright © 2002 O'Reilly & Associates, Inc. All Rights Reserved.straightforward, and you may be wondering why I said things could becomplicated. As it turns out, the complication is that margins canhave negative values.
You'll remember that I said the second-simplest rule ofhorizontal formatting was this: the total of the seven horizontalproperties always equals the width of the parentelement. At first glance, this can be interpreted to mean that anelement can never be wider than its parent's contentarea -- and as long as all properties are zero or greater,area where you must remember that total control over documentappearance is simply not possible. In this case, it's due to acombination of inconsistent operating system settings and thevagaries of human perception, which is an obstacle no computer isgoing to overcome any time soon.
It is left to individual authors to decide what chances they wish totake with using named colors, but at least with the specified sixteencolors, there is some moderate hope of consistency.the SPAN text (which is set to bebolder) will inherit the value of100 and then evaluate to the next-heaviest face,which is the Bold face and which has a numerical weight of700. Figure 5-11 shows us thevisual result of all this.
Let's take this all one step further, and add two more rules,plus some markup, to illustrate how all this works (see Figure 5-12 for the results):