Web Analytics Made Easy - Statcounter
Sunday , 24 September 2023
Stackode
Home > CSS

CSS

Ten CSS tricks you may not know

1. CSS font shorthand rule When styling fonts with CSS you may be doing this: font-weight: bold; font-style: italic; font-variant: small-caps; font-size: 1em; line-height: 1.5em; font-family: verdana,sans-serif There’s no need though as you can use this CSS shorthand property: font: bold italic small-caps 1em/1.5em verdana,sans-serif Much better! Just a few of words of warning: This CSS shorthand version will only ...

Read More »