I use the line-height property to align text with icons in the menu. I created a simplified version (without icons) to illustrate my problem. The problem seems to be related to the overall alignment of the fonts vertically.
You can see this problem on jsfiddle: http://jsfiddle.net/KFxG3/1/
The code is very simple:
<div>qb - Some text - qb</div>
Adding style:
div { background-color: green; height: 22px; line-height: 22px; font-size: 20px; font-family: 'Segoe UI', 'Verdana', 'Arial'; }
Here's what it looks like:

And this is how it MUST look:

Why is this happening in new browsers? I tested it on a 64-bit version of Windows 8.1 in Firefox 27.0.
EDIT: I want to know WHY browsers do not display correctly. A small letter like "a" should have the same space above and below "green" when applying a line height whose height is equal to the size of the container. But the rendering is wrong.
EDIT No. 2: a problem with the font. Segoe UI seems to have a weird baseline. When using Arial, Verdana or any other vertical alignment is better (but this is also not ideal). β http://jsfiddle.net/KFxG3/22/
html css
Supernova
source share