Created
September 20, 2010 10:59
-
-
Save agustibr/587735 to your computer and use it in GitHub Desktop.
Styling fonts with CSS shorthand property
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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