<h1>Understanding the difference between EM, PX, %age and PT<br> - <a href="http://aamirshahzad.net">Aamir Shahzad</a></h1> <p>Let's understand Pixel's philosophy by a jsfiddle coding example. Resize output window to check <b>PX</b> in action.</p> <h3>Note that changing document font size in body has no effect.</h3>
body { font-family: calibri, arial; font-size: 100%; } h1 { font-size: 48px; } h1 a { text-decoration: none; } p { font-size: 24px; } @media (min-width:768px) and (max-width: 1024px) { body { font-size: 75%; } } @media(max-width: 768px) { body { font-size: 50%; } }