html - Different text align behavior for firefox -


firefox 38, safari, chrome

it simple

body{      padding:0;      margin:0;  }
<div style="font-size:34pt;">bridges yeah</div>

safari , chrome ok. wrong firefox ? different default value or ?

it's hard predict browser behaviours. closer solution use line-height.

div{     line-height:1; } 

fiddle: http://jsfiddle.net/js23fefm/1/


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -