<html> <body> <div id="wrapper"> <div id="header"> <h1>Lorem Ipsum</h1> </div> <div id="article"> <h2>Lorem Ipsum</h2> <p>Lorem Ipsum is simply dummy text and typesetting industry.</p> </div> </div> </body> </html> html, body { font-size: 12px; } h1 { font-size: 22px; } h2 { font-size: 18px; } p { padding: 10px 5px; } #wrapper { width: 1000px; } #article { width: 600px; margin: 30px 30px; padding: 10px 5px; }
Good day everyone! There was a question about converting from PX
to EM
. Seen a lot of good sites use EM
.
How to convert - an example (see above)?
Tell us how you use?
I would be grateful for any information!
* Before the code I connect resetting all styles.