Forum Home
Press F1
 
Thread ID: 24248 2002-09-06 13:28:00 Tables in HTML Gorela (901) Press F1
Post ID Timestamp Content User
77115 2002-09-06 13:28:00 I have the following HTML code to create a couple of side by side cells and was hoping someone could tell me where I have gone wrong. In IE 5+, Mozilla and Konqueror this gives me a grey cell on the left hand side and a larger white cell on the right. For some reason the grey cell doesn't appear in Netscape.

Clues for the clueless appreciated.

<table border="1" cellpadding="0" cellspacing="0" width="100%" height="700">
<tr>
<td bgcolor="#888888" align="left" width="13%" height="700">
</td>
<td bgcolor="#FFFFFF" align="left" width="87%" height="700">
</td>
</tr>
</table>
Gorela (901)
77116 2002-09-06 13:42:00 Netscape has a few bugs...

If a small grey cell and large white cell is what you're after, then congrats. The only thing I would do is remove the height from the <td> sections since you have already specified them in the <table> tag.
SoniKalien (792)
77117 2002-09-06 21:13:00 What version of netscape is it not displaying properly?

As I don't have netscape to test the code out on, I posted your message on an HTML board to see what the Web design experts had to say. You can view it here

www.htmlhelp.com
Sam H (525)
77118 2002-09-06 23:50:00 Netscape traditionally doesn't render a table cell with nothing in it.

Alter your code to this:
<td bgcolor="#888888" align="left" width="13%" height="700"></td>
antmannz (28)
77119 2002-09-06 23:54:00 Ah ... bugger; that space is supposed to be a non-breaking space character, the forum won't let me display it as code so .....

where you see "Insert non-breaking space here" should have:
& n b s p ;
with no spaces in it, but I'm sure you know that anyway :)

<td bgcolor="#888888" align="left" width="13%" height="700">"Insert non-breaking space here"</td>
antmannz (28)
77120 2002-09-07 00:28:00 Thanks Soni, Antzman and Sam for the help. I'll make the mods and see what transpires.

I have also checked your link John and there is a mention of non standard table height and nothing wrong in 4.7. Rather strange as I was checking in Netscape Communicator 4.79 and I found it to be harder with loose code than the other three browsers.

Thanks again!
Gorela (901)
1