When it comes to CSS single line vertical centering using line-height, I often run into a problem. My usual approach is setting the height and line-height without padding, particularly for buttons:
height: 44px;
line-height: 44px;
However, there are times when this method doesn't achieve perfect centering. Take a look at this fiddle:
https://jsfiddle.net/Lm444sny/1/
I'm curious about why it sometimes doesn't work flawlessly. The text appears somewhat centered but not perfectly.