CSS allows you to group multiple declarations for the same selector into one rule set, separated by semicolons. This allows you to apply multiple declarations to one selector to save space. So this: Becomes this: Even better, use shorthand properties to abbreviate this rule even further, like this: This abbreviated form of specifying style is supported by most modern browsers. You can combine grouping of declarations with grouping of selectors to create even more powerful CSS rules.body {font-size: 1em;}
body {font-family: arial, helvetica, sans-serif;}
body {color:#000000;}
body {background:#ffffff;}
body {
font-size: 1em;
font-family: arial, helvetica, sans-serif;
color: #000000;
background: #ffffff;
}
body{font:1em arial,helvetica,sans-serif;color:#000;background:#fff;}
Further Reading
By website optimization on 19 Nov 2003 PM