How to get the firefox cursor to be based on the line height, not the height of the text box

alt text http://i45.tinypic.com/2ll22o1.png

As shown in the image above, if you have a padded text box, the initial cursor size, at least on my Mac, is the full height specified with padding. Of course, when you start typing, it returns to the normal size of the text (see Password watermark).

Is there a way to make the starting cursor of the desired size, besides simply resizing the actual text field? (It works great in Webkit browsers.)

Example:

<input type="textbox" style="height: 40px" />
+3
source share
2 answers

sudo . , mozilla ( ): http://support.mozilla.com/en-US/home .

<span class="wrap">
    <input type="text" required="required" placeholder="Search Firefox Help" name="q" class="text">
</span>
+1

( Firefox) , - . undefined, . , webkit. , Firefox.

Unideal fix:

<input type="textbox" style="height: 40px; padding: 10px 0;" />
0

Source: https://habr.com/ru/post/1752733/


All Articles