For me, the picture was:
* {margin:0;padding:0;}
In Firefox (FF) and Google Chrome, both values are 0.67em. FF showed its difference by default, but crossed out, but applied it anyway. GC showed its default difference (-webkit-margin-before ...) uncrossed.
I applied
* {margin:0;padding:0; -webkit-margin-before: 0; -webkit-margin-after: 0;}
but to no avail, although the GC now showed the default intersection.
I found out that I can apply either
line-height: 0;
or
font-size: 0;
to achieve the desired effect. This makes sense assuming a margin of type .67em. If anyone can explain why browsers make our lives miserable by applying a line-dependent, fixed edge, I would really appreciate it.
d_le_nen Apr 01 '14 at 12:40 2014-04-01 12:40
source share