I recently had to deal with FF, which emphasized too fat and too far from the text in FF, and found a better way to handle it using a couple of boxes:
.custom-underline{ box-shadow: inset 0 0px 0 white, inset 0 -1px 0 black }
The first shadow is placed on top of the second and that you can control the second by changing the "px" value for both.
Plus: various colors, thickness and underline
Minus: cannot be used on non-continuous background images
Here I made some examples: http://jsfiddle.net/xsL6rktx/
anvar Feb 24 '15 at 18:27 2015-02-24 18:27
source share