0

I am making component button with image inside. I removed borders of button, but there is strange line under the image, that can not been seen in inspector? Any clues?

image1 image2 image3

Krasnay Danil
  • 101
  • 1
  • 9

2 Answers2

1

that is because height of your button is 53px and height of image is 50px so u see a line which is a 3px leftover. give your image a height of 53px

Aryan Choudhary
  • 492
  • 1
  • 8
  • 14
  • I can read... I know that button height is 53... I am asking why button height is 53?! And how to make button take content height... – Krasnay Danil Jul 13 '20 at 03:50
1

I found the way to fix it: Make button display: inline-flex; or better make image display: block;

Krasnay Danil
  • 101
  • 1
  • 9