Input mis-aligned on some browsers without changing anything

I have an input element paired next to a text-element. On my main broswer (Chrome) they align perfectly, but on Safari and even when using chrome on my larger laptop, the input element is shifted down a pixel.

My Chrome browser (aligned):
Screenshot 2024-03-02 at 10.57.49 AM

Every other browser (mis-aligned):
Screenshot 2024-03-02 at 10.57.58 AM

Any ways I can fix this? The group holding both elements is air-tight and properly centered so I’m not sure what else to do.

Edit: Also Icons in the same orientation are behaving this way, with the icon next to the text being shifted down a pixel on different browsers.

Hey @greyginter

The only reason i can think of is:

On certain browsers/screens, the group containing the said input+text is getting elongated.
The 1 other factor that affects the alignment of text field is either “line spacing” or “center the text vertically.” I would recommend playing with that. While you do that, color each or your input, text and group in a separate background color so you can see them interacting.

This topic was automatically closed after 70 days. New replies are no longer allowed.