I am curious to know why following elements have various heights:
<i class="icon"></i>
<i class="noicon"></i>
i {
display: inline-block;
width: 1em;
height: 1em;
}
i.icon:before { content: 'Ω'; }
i.noicon:before { content: ''; }
That case may be illustrated by http://jsfiddle.net/pJw9d/ (hover the symbols with pointer to view the difference in sizes).
PS: I know how to fix such problem (e.g., by using non-breaking space (
or \00a0
), or by defining CSS positions), but I would like to know why it behaves that way.