[thelist] dastardly html - theplacetogetstuff.com

Andrew Clover and at doxdesk.com
Fri Jan 25 06:25:00 CST 2002


> The only problem is the top table - the background images just dont line

They don't in any browser. The reason is the whitespace between the <a>s in
the right-hand cell. By putting a space between them you are making the cell
into a line of text with images aligned on the text baseline. Browsers
reserve enough space for a line of text including the descenders that go
under the baseline, so the total height of that cell - and hence the whole
row - is more than 50 pixels.

Suggest giving the images in the right-hand cell 'align="top"' or similar to
stop it putting them on the baseline is the easiest fix.

> up and the lines are fuddled.

This is due to Netscape's table layout algorithm. When there is horizontal
slack left in the table, Netscape assigns the spare space to all cells -
even fixed-width ones - according to the amount of content in each cell. So
the unsized middle cell with the little spacer in does not expand to fill
the spare space as it does in IE.

Suggest you get rid of the middle cell, then either give the next cell along
'width="100%"' to make it take up all remaining space (this is slightly
dodgy but works across all browsers), or give the left-hand cell the same
background image as the right, so it won't matter what sizes they are.

--
Andrew Clover
mailto:and at doxdesk.com
http://and.doxdesk.com/



More information about the thelist mailing list