79085821

Date: 2024-10-14 10:49:27
Score: 3
Natty:
Report link

It looks like I can solve my problem with two solutions. (I want to keep my specific font-size).

Solution 1
Remove the height as @C3roe comment says. If I want to preserve a similar height, I can use a padding to do it.

Solution 2
Modify the line-height to 1.25.
I know that browsers do stuff like line-height * 1.25. 14.4*1.25 = 18 (rounded value). It give me the right result, even if I keep the height:30px.

This is a solution, even if I don't know why. I recommend the article from "Vincent De Oliviera" about font metrics. It could explain why I have this problem.

Reasons:
  • Blacklisted phrase (1): I have this problem
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Flament Mickaƫl