I have an image as the background for an input field. I can set the line-height and font-size easily but when you click inside the input, the cursor line is way outside the background image.
Is there a CSS statement (Is that you call them?) that controls this?
You’re probably using
line-heightto display the text in the input as vertically centered. However, it is also the culprit of your issue. Try experimenting withpaddingsettings of the input instead, while leaving theline-heightset tonormal.