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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -