I am trying to add this table to my blog but for some reason it adds a huge chunk of space above it | < Help | I can't work out why because there is nothing before I start the code for the table |
Me Please!> |
the code I am using to create the errant table above:
<TABLE BORDER width="425" CELLPADDING=2 CELLSPACING=2> <TR> <TD ROWSPAN=2 bgcolor="#EE799F">I am trying to add this table to my blog but for some reason it adds a huge chunk of space above it</TD> <TD width="55" bgcolor="#EE799F"><span style="font-weight:bold;"> < Help</span></TD> <TD ROWSPAN=2 bgcolor="#96C8A2">I can't work out why because there is nothing before I start the code for the table</TD> </TR> <TR> <TD bgcolor="#96C8A2"><span style="font-weight:bold;"Me Please!></span></TD> </TR> </td bgcolor="#fef5fc"></TABLE></span> |
3 comments:
Sam -
I think the problem lies in the extra hard returns you have in your code, each of which the Blogger engine translates into a {br} tag.
A {br} tag can be used without any problem in the middle of the text that you want to appear in a given table cell, and doing so will have the expected effect of causing the text after the tag to continue on a new line within the same cell. But for reasons that are not entirely clear to me, if you try to put a {br} tag anywhere else within the code for a table (e.g., between a {tr} tag and a {td} tag), a line break gets implemented before (i.e., above) the table.
When I copied your code verbatim into a test post, I saw the same problem. When I deleted all of the hard returns embedded in the code, the problem vanished. Hope this helps!
NS - I can't thank you enough - that fixed it - you are a STAR!!
cheers!
Sam
thanks for the hints. i got my tomato tables working!
Post a Comment