Category Archives: Applause

Posts relating to websites that have switched to web standards

Pixel to em calculator

Piotr ‘Riddle’ Petrus has released a simple JavaScript form to help calculate the em equivalent of a pixel size you want to emulate. I wrote a quick-and-dirty version of this in Excel to help with the typographic rhythm of my CSS framework but this is much nicer. You can add nodes below the body tag – h1, h2, h3 for example – set the pixel size you would like these to appear as and it automagically calculates the em value. Continue reading

Posted in Applause, CSS | Comments Off