Code Snippet
Font Shorthand
Syntax
body {
font: font-style font-variant font-weight font-size/line-height font-family;
}
In Use
body {
font: italic small-caps normal 13px/150% Arial, Helvetica, sans-serif;
}
body {
font: font-style font-variant font-weight font-size/line-height font-family;
}
body {
font: italic small-caps normal 13px/150% Arial, Helvetica, sans-serif;
}
Ah, so that’s why I wasn’t able to specify the size of fonts using font:! I’ve always just had to use font-size:.
Thanks!
thanks!! :D this really helps!! :3 woot wooot! :3
In addition to the URL linked in the post, I have a cheat sheet for helping understand font shorthand:
http://www.impressivewebs.com/css-font-shorthand-property-cheat-sheet/
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.