html - Same font, character spacing and line-height but different results -


the introduction of @font-face in css3 allows web designers use fonts same across browsers. thought until trying out following code in jsfiddle:

html:

<div>     the_quick_brown<br>     fox_jumps_over<br>     the_lazy_dog </div> 

css:

@font-face {   font-family: 'open sans';   font-style: normal;   font-weight: 400;   src: url('http://themes.googleusercontent.com/static/fonts/opensans/v6/cjzkeoubrn4kerxqtauh3t8e0i7kzn-epnyo3hzu7kw.woff') format('woff'); }  div {     display: block;     width: 496px;     height: 86px;     font-size: 1.3em;     font-family: 'open sans';     font-style: normal;     margin: 0;     border: 0;     padding: 0;     background: cyan;     letter-spacing: 1.44em;     line-height: 1.44;     overflow: hidden; } 

firefox 12.0

this view firefox 12.0. take note of partially obscured 'o' in 'brown', position of 'g' in 'dog' , underscore '_' @ bottom edge.

google chrome 19.0

this view google chrome 19.0.

despite explicitly setting letter-spacing , line-height same font, why results still different?

your code correct. problem browser/ each browser (browser rendering engine specific) renders contents in different manner. may not exact same output each browser time. features , other blings might same different story in terms of rendering web page.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -