Why the same font size gives different results?
Why font size is different in divs? <div style=”font-size: 30px;”> <h1>Sample text</h1> </div> <div> <h1 style=”font-size: 30px;”>Sample text</h1> </div> Why is this happening? >Solution : The default value for h1 tag in Chrome is 2em. Ems are relative to the font size set in the CSS (parent element). So in your second div you are… Read More Why the same font size gives different results?