Skip to content

Instantly share code, notes, and snippets.

@agustibr
Created September 20, 2010 10:59
Show Gist options
  • Save agustibr/587735 to your computer and use it in GitHub Desktop.
Save agustibr/587735 to your computer and use it in GitHub Desktop.
Styling fonts with CSS shorthand property
.myclass { font: bold italic small-caps 1em/1.5em verdana,sans-serif; }
/* or */
.myclass {
font-weight: bold;
font-style: italic;
font-variant: small-caps;
font-size: 1em;
line-height: 1.5em;
font-family: verdana,sans-serif
}
/*all properties*/
.myclass {
font-family: 'Droid Sans', serif;
font-size: 27px;
font-style: normal;
font-weight: 400;
text-shadow: 2px 2px 2px #aaa;
text-decoration: line-through;
text-transform: none;
letter-spacing: -0.031em;
word-spacing: 0.014em;
line-height: 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment