in reply to Re: How to iterate by fives?
in thread How to iterate by fives?

Thanks for the ideas. This is pretty much in line with what I had originally made, since it certainly is simpler to generate, but the original I am replacing has items in colums, and I need it to be as transparent an update as I can make it. The form tracks email addresses of folks associated with certain products. There are currently about fourty products with five to ten email addresses associated with a number of them, so it wound up appearing really clumsy to me. Since the number of products will only increase, and one of the reasons I was rewriting it was because there was a hard limit of ten, and we had cases where up to twenty email addresses would be needed, with the possibility of this increasing even more over time, which starts to get really awkward in one giant column.

I am not really an html guy, I was not aware that a different number of columns/row in a table was invalid. The stuff I generated renders correctly in all the browsers I need to test, but I will have to consider adding blank cells, since I want it to be correct. Since I have no borders on the table anyway, a blank cell and no cell have basically the same appearance. Again thanks.

Replies are listed 'Best First'.
Re: Re: Re: How to iterate by fives?
by DapperDan (Pilgrim) on Feb 17, 2003 at 00:00 UTC
    In your HTML, you may need to put &nbsp; in the empty <td> elements in order for the blank space to be 'filled in' by the browser. YMMV.

    This observation is based on purely anecdotal evidence; I hope it turns out to be more than just a brain-fart.

      You're right. Some browsers will not render a table cell if it has nothing in it. What I tend to do, rather than using a &nbsp;, is to put in a one-pixel, transparent image tag, so that if the cell wants to be narrower or shorter than the nbsp it can be.