Nik Coughin wrote:
> >>> Please have a look at http://www.nrkn.com/boxGap/index.html
> > ...and that white space is caused by my formatting (the code
> > indenting). Which means I have to sacrifice readability for
> > presentation. *Sigh*. Thanks Richard.
No. Don't even think about "fixing" the font size, or making it smaller. Fix
what is causing that whitespace.
> ...but removing all the formatting only removes enough whitespace to go a
> few zoom levels higher before it breaks, but it still breaks past a
certain
> level. Where is that whitespace coming from?
line-height:
That spacer image is inline content. Inline content lives in a generated
"line box". The height of this box is line-height:, by default around 1.5em
or something. So, as the font size gets larger so does the height of this
line box. Eventually lineheight is bigger than the size of that div - white
space.
Since this is only a visual artifact, that is there is no actual content
inside those divs, it is in order to specify line-height: 0; for the north
and south divs. This will, in effect, make the height of those divs the same
as the image.
--
Cheers
Richard.