CSS

Just some CSS snippets and tricks to help you along the way to becoming a CSS guru.

FONT – REM

Make the root font size 62.5% so that it the same as 10px (not 16 as is the default).

html { font-size: 62.5%; } 
body { font-size: 14px; font-size: 1.4rem; } /* =14px */ 
h1   { font-size: 24px; font-size: 2.4rem; } /* =24px */

Courtesy of Mr Snook