A simple example of CSS font shorthand rule
When styling fonts with CSS, you may do the following:
font-weight: bold; font-style: italic; font-variant: small-caps; font-size: 15px; line-height: 20px; font-family: verdana,"trebuchet MS",sans-serif
Instead of that, you can do this:
font: bold italic small-caps 15px/20px verdana,"trebuchet MS",helvetica,sans-serif
For more shorthand rule of CSS, here is a good post.
You may also like:
Leave a comment