Chrome add-on only

I get a weird addition in the h3 tag only in Chrome. The strangest thing is that I cannot prevent this or control it with CSS, and when I select the h3 text, it seems that the selection expands to the right and bottom of the text.

Preview in Chrome:

enter image description here

Preview in other browsers:

enter image description here

This add-on in Chrome causes misalignment, and it increases the size of the container, which is undesirable.

Here is the violin .

Could you help me find the problem?

Note. I use CSS reset, I tried line-height , margin instead of padding , but no luck.

+4
source share
4 answers

Try adding line-height: 0; in the div:

 #mailing div { line-height: 0; } 

Try adding:

 #mailing .moduletable { display: table; } 

Updated jsfiddle: http://jsfiddle.net/BbJhE/12/

+2
source

Although this may not be the best solution (because I had to hardcode the height of <div id="mailing"> ), it works and remains compatible with both Chrome and FF

I added height: 2.4em; in #mailing and margin:0; up to #user_email_formAcymailing1.inputbox

Fiddle: http://jsfiddle.net/BbJhE/11/

+1
source

Try to delete:

 table.acymailing_form { margin-top: 2%; } 
+1
source

Try setting a hard row height for h3:

 #mailing h3 { font:small-caps .95em"Times New Roman", Times, serif; letter-spacing:1px; text-transform:capitalize; text-shadow:0 1px 0 #fff; color:#6b6b6b; padding:10px; margin:0; float:left; line-height:20px; } 
0
source

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


All Articles