I have an element that contains two span tags, each of which contains some text. The container element sets the font size, and the font size on the second span tag is set to a smaller size. When the second range decreases in font size, the space between the line and the next block element increases. This happens both in WebKit and in Gecko.
The container element p has { margin-bottom: 0; padding-bottom: 10px; } { margin-bottom: 0; padding-bottom: 10px; } { margin-bottom: 0; padding-bottom: 10px; } , and his next brother has { margin-top: -5px; } { margin-top: -5px; }
The following image illustrates the situation and contains a snapshot of the corresponding part of the document structure in FireBug.

Why does the interval under the p tag increase after decreasing the font size of the second span tag?
css
Nathan ridge
source share