3

I want the buttons to include text, I am able to format everything correctly, but when switching to Google Fonts, the font style itself seems to have some sort of bottom padding and I am not sure how to get rid of this. (See the image below) I want the text to be vertically aligned within the button.

TEST Button Example Images

The below image simply does not include my line-height styling, notice that there is still a noticeable area below the font that will not go away.

enter image description here

Caine Nielsen
  • 319
  • 2
  • 14
  • Please share your code on here (and on https://codepen.io/pen/) to check your problem – hisbvdis Sep 07 '19 at 17:47
  • *the font style itself seems to have some sort of bottom padding* --> you answered your self, the font may include some spacing that you cannot control and this is a part of the font properties. Related: https://stackoverflow.com/a/55978512/8620333 – Temani Afif Sep 07 '19 at 19:08
  • @TemaniAfif thanks for linking that related question. That helped a lot. I'll consider this answered since the answers there cover this issue. – Caine Nielsen Mar 02 '23 at 19:05

1 Answers1

1

I am considering this question answered by the helpful answers and resources from the linked issue provided by Temani Afif.

Caine Nielsen
  • 319
  • 2
  • 14