Take the following example:
span {
color: blue;
border: 1px solid blue;
font: 9px Arial;
font-weight: bold;
}
<span>LOREM IPSUM</span>
<span>LOREM IPSUM</span>
<span>LOREM IPSUM</span>
<span>LOREM IPSUM</span>
Browsers will add some inconsistent margins/paddings between the border and the text:
Firefox:
- 2px top and bottom
- 1px left
- 0px right
Chrome:
- 1px left, top and right
- 2px bottom
Resetting margin
and/or padding
to 0 does nothing. Is there anyway to get this more consistent between browsers? Preferably, with all sides having the same margin?