<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>CSS Test: Em size with the font-size set to px size</title> <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units"> <meta name="flags" content="ahem"> <meta name="assert" content="The 'em' unit is equal to the computed value of the 'font-size' property (pixels) of the element on which it is used."> <style type="text/css"> #div1 { font-size: 32px; } #test { background: black; height: 1em; width: 1em; } div { font-family: Ahem; margin-top: 10px; } </style> </head> <body> <p>Test passes if the two boxes below are the same size.</p> <div id="div1"> <div id="test"></div> <div>X</div> </div> </body> </html>