Padding Left quirk in Firefox

http://jsfiddle.net/hERrX/

input{ padding:1%; } input#checking{ padding-left:40px; } 

Please check the link above in FIREFOX and help me with this problem. It works very well in Chrome. The bookmark on the left does not work, although it has a higher priority.

+6
source share
3 answers

It works if you do not use the length % :

http://jsfiddle.net/hERrX/15/

 input{ padding: 5px; } input#checking{ padding-left: 40px } 

I do not know why it does not work with % ..

I found an error report here: https://bugzilla.mozilla.org/show_bug.cgi?id=527459

+7
source

This is similar to question # 1446832 , Firefox doesn't seem to work too well with interest paddings.

Total padding: 1% contrary to the specific left padding padding-left: 40px . In jsfiddle.net I fixed it by replacing the latter with padding: 0 0 0 40px .

+2
source

Instead, you can use text-indent: 40px . This works in Firefox.

+2
source

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


All Articles