• 0

ARGH, HTML row height problems


Question

The image speaks for itself really,

Why the hell don't the row heights in IE default to the image size.

They wont even shrink if i set height=1 on the TR or each of the TDs, or use style="height: 1px"

What am i doing wrong?

cheers

post-21357-1108310769_thumb.jpg

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Try setting the font size / line height on the td (even if it's a non-break space it'll have size and height).

If the issue is the break between the rows (and you have cellspacing="0" cellpadding="0" in the <table> tag), try border-collapse: collapse in the table style.

Edit: another possibility is ensuring there is no whitespace in the code for the tds:

&lt;td&gt;&lt;img src="summat.gif"&gt;&lt;/td&gt;

instead of:

&lt;td&gt;
    &lt;img src="summat.gif"&gt;
&lt;/td&gt;

Link to comment
Share on other sites

  • 0
Edit: another possibility is ensuring there is no whitespace in the code for the tds:

&lt;td&gt;&lt;img src="summat.gif"&gt;&lt;/td&gt;

instead of:

&lt;td&gt;
    &lt;img src="summat.gif"&gt;
&lt;/td&gt;

585468517[/snapback]

That whitespace issue probably tops my list of most infuriating IE bugs.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.