If there is a lot of space above, the browser is in error.
Although there are actually two elements above, it should not be apparent that this is so, since they should be on top of one another - they are both two lines high with font-size: 12px and line-height: 16px, and the second has margin-top: -32px.
Although there are actually two elements above, it should not be apparent that this is so, since they should be on top of one another (the same as the previous example, except using an H1 element instead).
+---------+ |iiiiiiiii| |iiiiiiiii| |iiiiiiiii| |iiiiiiiii| |iiiiiiiii| |iiiiiiiii| +---------+ |iiiiiiiii| |iiiiiiiii| |iiiiiiiii| |iiiiiiiii| |---------| |---------|
Note: there should not be any conspicuously overlapping text below.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The above should appear as a single line of text. There should not be red visible (because since the line height is 0, so too is the height of the element).
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The above should have a single line. The line should be (approximately) through the middle of the text.
Copyright © RichInStyle.com 2000; all rights reserved. See copyright document for terms of use. Please visit Bukit Lawang flood appeal.