HTML Tables Help

ziplux

Senior member
Feb 7, 2001
676
0
0
Okay, if someone figures this out I'll be forever thankful to them. I made this page with tables, and when I went to put the content in, weird stuff happened with the page. If I put the content in with a style (using either a DIV tag or a CLASS parameter in the table definition), it causes the logo's cell (in the upper left hand corner) to ignore the WIDTH parameter I gave it. Here's the page before I put the content into it (this is how it SHOULD look): How it should look

And here's what happens when I put the content in: bad, what happened?

The other weird thing is if I don't use a style on the content, everything works fine. Can someone help?

EDIT: I added the borders to show what happens. Also, it works fine in Netscape, but now IE. What have I done wrong?
 

ziplux

Senior member
Feb 7, 2001
676
0
0


<< add width=* to the second cell >>


I tried that, it didn't help. I think you can only use the * for width and height in frames.
 

Czar

Lifer
Oct 9, 1999
28,510
0
0
<table width=100%>
<tr>
<td width=200>
</td>
<td>
</td>
</tr>
</table>

this should work
 

ziplux

Senior member
Feb 7, 2001
676
0
0


<< <table width=100%>
<tr>
<td width=200>
</td>
<td>
</td>
</tr>
</table>

this should work
>>



That's actually what I'm doing, I tried setting the width to 200, but it didn't help (I have the width set to 230). The weird thing is that if I have only a couple of words in the place where I'm putting the text, it works fine. If I have a bunch of words, then the logo's cell gets enlarged.
 

ziplux

Senior member
Feb 7, 2001
676
0
0
I was able to fix the problem by putting the content in its own table, seperate from the table I use at the top for the navigation buttons and logo. The way I had it setup should have worked, but this workaround works too.
 

Czar

Lifer
Oct 9, 1999
28,510
0
0
yeah, its best to have all headers and footers in separate tables because when the browser loads up the page it doesnt print out the table untill it is finished retreaving it all. So like here on the forums each reply is a table.