Posted by: webkori on: January 21, 2009
CSS font shorthand rule
When styling fonts with CSS you may be doing this:
font-size: 1em;
line-height: 1.5em;
font-weight: bold;
font-style: italic;
font-variant: small-caps;
font-family: verdana,serif;
There’s no need though as you can use this CSS shorthand property:
font: 1em/1.5em bold italic small-caps verdana,serif
Much better! Just a couple of words of warning: This CSS shorthand version will only work if you’re specifying both the [...]
Posted by: webkori on: July 17, 2008
With the imminent launch of IE7 your usual CSS hacking methods are going to fail. If you want to save web design, as we know it, it’s time to take some drastic action.
CSS has experienced a colourful and unusual history. From historic slow adoption to the current slow rate of development, ugly hacks have meant [...]
Recent Comments