css - Difference between IE10 and Chrome calculating heights of inline-block elements -
i have modified bootstrap dropdown truncate text within button element, however, there seems difference in how height of button element calculated.
this fiddle demonstrates did initially key seems css controlling span element within button.
button.btn span { min-width:91px; max-width:91px; overflow:hidden; white-space:nowrap; -ms-text-overflow: ellipsis; -o-text-overflow: ellipsis; text-overflow: ellipsis; display:inline-block; } below browser metrics ie , chrome height of button element:

replacing inline-block style on span float: left as demonstrated in fiddle appears correct heights , works across both browsers.
button.btn span { min-width:91px; max-width:91px; overflow:hidden; white-space:nowrap; -ms-text-overflow: ellipsis; -o-text-overflow: ellipsis; text-overflow: ellipsis; float: left; } 
what causing difference in element height between chrome , ie when using inline-block , doing correctly?
update: firefox appears same thing ie here.
i think you'll find answers @ url:
http://blog.mozilla.org/webdev/2009/02/20/cross-browser-inline-block/
note: did gave try display:table-cell?
Comments
Post a Comment