Style Sheets Guide
=Declaration Shorthand Notations=
= Index DOT Html by Brian Wilson
[bloo@blooberry.com] =
Declaration Grouping
[IE3B1 | N4B2 ]
Multiple Declarations
[ {Property: Value} pairs] can be specified for a single
Selector by separating them with semicolons.
- Example:
- H1 {
font-weight: bold;
font-size: 12pt;
line-height: 14pt;
font-family: helvetica;
font-style: normal;
}
Special Style Property Name Groupings
[IE3B1 | N4B2 ]
Some Style Sheet Properties are shorthand notations for specifying several properties at once.
By using special property notations, multiple values are concatenated together in the
Font,
Background,
List-Style,
Margin,
Padding,
Border and
Border-Width
properties to save an author time and space.
- Shorthand Properties
- font: font-size,
line-height,
font-family
background:
background-color,
background-image,
background-repeat,
background-attachment,
background-position
list-style:
list-style-type,
list-style-image,
list-style-position
margin:
margin-left,
margin-right,
margin-top,
margin-bottom
padding:
padding-left,
padding-right,
padding-top,
padding-bottom
border:
border-left,
border-right,
border-top,
border-bottom,
border-style,
border-color
border-width:
border-top-width,
border-right-width,
border-bottom-width,
border-left-width
Boring Copyright Stuff....