Call (877) SITE-OPT (748-3678)

Code: Use shorthand properties

From Chapter 7: CSS Optimization

Shorthand properties in CSS2 succinctly specify property declarations according to built-in rules (replication, inheritance) and defaults (none, normal). The list of shorthand properties is as follows:

font:         <font-style> <font-variant> <font-weight> <font-size> / <line-height> <font-family>
border:       <border-width> <border-style> <color> transparent
border-color: top right bottom left (uses replication)
border-style: top right bottom left (uses replication)
border-top:   <border-top-width> <border-style> <color> (top/right/bottom/left)
border-width: top right bottom left (uses replication)
background:   <background-color> <background-image> <background-repeat> <background-attachment> <background-position>
list-style:   <list-style-type> <list-style-position> <list-style-image>
margin:       <margin-width> top right bottom left (uses replication)
outline:      <outline-color> <outline-style> <outline-width>
padding:      <padding-width> top right bottom left (uses replication)
Copyright © 2002-2017 Website Optimization, LLC. All Rights Reserved - Free website speed test - Privacy Policy
Last modified: February 19, 2009.

Follow us on: Twitter, Google+, Facebook, Linked In