Forum Moderators: open
I vaguely remember some discussion about Netscape4 (?) needing something inside the TD tag other than a space (like a clear .gif file.) Would someone please elaborate on this?
P.S. Add & before nbsp and ; after. I could not get it to work in this message. The clear.gif method gives you total control over the size of the cell. I would imagine this can be done with .css also, but that one is outside my realm of knowledge.
You can just as well use an empty img tag for this purpose:
<img width="1" height="1">
It's not 200% standards compliant, but appears to be without any bad side effects. Limiting the height to 1 will also avoid the display of the ugly icon when images are not loaded. An empty img tag is slightly more code than the nbsp, but takes almost no space in the layout when this is an issue.
P.S. I would not use an image with a 1x1 dimension if I absolutely did not have too. There has been too much heated debate on this one (hidden links, keyword stuffing, etc.) and I'm staying away from it just in case!
<table><tr><td>& nbsp ;</td><td>text goes in here</td></tr><tr><td>this is the first cell on row2</td><td>another cell on row2</td></tr></table>
also make sure you html code is 100% correct with NN4 - check you haven't missed any tags. if all is correct, your table should display ok using & nbsp ; in empty cells.
About a year and a half ago I went through all the sites that I manage and did a major overhaul on the html. All of my tags are now unbroken with no indents, tabs or spaces. You should be able to break your <tr> tags onto separate lines, its the <td> that causes the problems.
One of the most useful tools is the 'shim.gif'. This is a 1x1 pixel transparent image... so you only ever need use that one, no matter what the background. You can resize it to be a spacer of any size you like using the width and height attributes in the img tag.
Right click here [hrmsoftware.com] and choose 'Save Target As'* if you want it.
* depending on your browser