Given a link or any inline element with a background color, I'd like to vertically center the text to the pixel
<a href="#">Hello world</a>
a {
line-height: 22px;
font-size: 16px;
background: #f00;
color: #fff;
text-decoration: none;
}
It seems like Firefox's baseline rendering is different by a single pixel and I'm wondering how to compensate without resorting sniffing the browser and injecting a browser-specific stylesheet? I'd be happy with resorting to a vendor prefixed solution.