.sidebar {background: green; font-family: Verdana,sans-serif;}
We use font-family here because we don't want to specify a font-size for the sidebar, so we can't use the shorthand font.
Now we could put headings and lists of links in separate paragraphs and then mess around with the padding, margin,
Friday 24th of May 2013 10:16:19 AM
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 | O | P | Q | R | S | T | U | V | W | X | Y | Z
Copyright © 2002 O'Reilly & Associates, Inc. All Rights Reserved.
wouldn't make any sense. There can only be one of each type of value: that is, only one width value, only one color value, and only one border style. So don't try to declare more than one value type:H3 {border: thin thick solid purple;} /* two width values--WRONG */
In such a case, the entire statement will be invalid and should be ignored altogether.
Finally, you need to take the usual precautions with shorthand
When an element's box is taller than the height explicitly setfor its parent.
When an element has been absolutely positioned.
The default value of visible means that thecontent may be visible outside the element's box. Typically,this would lead to the content simply running outside its own element