I NEED HELP!!! "Table Trouble"......

liunx

Guest
I need HELP!!! I'm trying to have <TH> then a <TD> with text in it, which I know is pretty simple. But I'm redoing my site in only 3 Tables with a menu on the left side...so when I type in the text <td> TEXT Here........</td> it screws up my left menu.<br />
<br />
<br />
Please take look<br />
<br />
<!-- m --><a class="postlink" href="Http://dale3forever.tripod.com/F5.html">Http://dale3forever.tripod.com/F5.html</a><!-- m --><br />
<br />
<br />
<br />
Thanks for you time,<br />
<br />
J MSD<!--content-->Hi James<br />
<br />
You have two options that I can see. Either try to control the row height in the existing table using ROWSPAN, or what I would do, is insert another table where your navigation links want to go. That way your navigation links will be formatted independently from your body text. <br />
<br />
Another option might be frames though I wouldnt suggest them. Let me know if I need to elaborate. I tend to confuse rather than clarify issues at times.<!--content-->Check out the file attached. Maybe this is the easier way.<!--content-->That's because you are arranging your text is in the same row as a single nav item.<br />
<br />
Try this.<br />
<br />
<html><br />
<head><br />
<title>Untitled</title><br />
</head><br />
<br />
<body><br />
<table border="0" width="100%" align="center"><br />
<tr><th> <img src=http://www.htmlforums.com/archive/index.php/"http://dale3forever.tripod.com/sitebuildercontent/sitebuilderpictures/topbanner.jpg" width=589 height="200" align="center"> </th></tr></table><br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"http://dale3forever.tripod.com/sitebuildercontent/sitebuilderpictures/picture1.jpg" width="100%" height="1%"> <br />
<br />
<!---Why is the width of the image above set at 100%?---><br />
<br />
<table bgcolor="#d3d3d3" border="0" width="100%" cellspacing="0" cellpadding="1"><br />
<tr><br />
<th><Font size="2" face="arial">[<u>About Site</u>]</font></th><br />
<th><Font size="2" face="arial">[<u>FAQ</u>]</font></th><br />
<th><Font size="2" face="arial">[<u>Advertise</u>]</font></th><br />
<th><Font size="2" face="arial">[<u>Link to us</u>]</font></th><br />
<th><br />
</tr><br />
</table><br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"http://dale3forever.tripod.com/sitebuildercontent/sitebuilderpictures/picture1.jpg" width="100%" height="1%"> <br />
<br />
<table bgcolor="white" border="0" bgcolor="white" cellpadding="5" align="right"><br />
<tr><br />
<!---This puts your nav items in one cell -- use valign="top" to keep everything in the top of the cell---><br />
<td width="25%" valign="top"><Font face="arial"><b>Diecast News</b><br><br><br />
[<u>Dealer Insight</u>]<br><br><br />
[<u>Caliber Report</u>]<br><br><br />
[<u>Old School</u>]<br><br><br />
[<u>Shelfs</u>]<br><br><br />
[<u>Hot List</u>]<br><br></td><br />
<br />
<!---This is a spacer cell which will give a 10 pixel space between columns. You may need to insert a clear gif (10 px wide) to hold that space static---><br />
<td width="10" valign="top">&nbsp;</td><br />
<!---End spacer cell---><br />
<br />
<td><!---Section Header goes here---><p><Font size="3" face=arial>Site News</font></p><br />
<br />
<Font size="2" face="arial"><br />
<!---Begin Body content---><br />
<p>YADDA YDD YDD YADDA YADDA YDDD YADDD yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda YDD yadda YDD yadda YDDDDD DDD yadda YADDA YDD YDD YADDA YADDA YDDD YADDD yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda YDD yadda YDD yadda YDDDDD DDD yaddaYADDA YDD YDD YADDA YADDA YDDD YADDD yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda YDD yadda YDD yadda YDDDDD DDD yaddaYADDA YDD YDD YADDA YADDA YDDD YADDD yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda YDD yadda YDD yadda YDDDDD DDD yaddaYADDA YDD YDD YADDA YADDA YDDD YADDD yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda YDD yadda YDD yadda YDDDDD DDD yaddaYADDA YDD YDD YADDA YADDA YDDD YADDD yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda YDD yadda YDD yadda YDDDDD DDD yadda</p><br />
<br />
<!---end body content---><br />
</font></td><br />
<br />
<!---Another spacer column to provide a nice margin so your text doesn't run to the edge of the screen---><br />
<td width="10" valign="top">&nbsp;</td><br />
<br />
</tr><br />
<br />
<br />
</table> <br />
<br />
<br />
<br />
</body><br />
</html><br />
<br />
<br />
BTW -- all attributes should be in quotes, at some point you might want to look into stylesheets to format your text instead of font tags<br />
<br />
hope it helps.<br />
-beth<!--content-->Well James,<br />
your code is not ok....<br />
no html, no body..<br />
and the TH is is not allowed like you do.<br />
Take a look at the at.<br />
Redone the menu/content part.<!--content-->Y'know what? I screwed up in the example I sent you. I meant to make the <th> tags into a <td><br />
<br />
so this row:<br />
<br />
<tr> <br />
<th><Font size="2" face="arial">[<u>About Site</u>]</font></th> <br />
<th><Font size="2" face="arial">[<u>FAQ</u>]</font></th> <br />
<th><Font size="2" face="arial">[<u>Advertise</u>]</font></th> <br />
<th><Font size="2" face="arial">[<u>Link to us</u>]</font></th> <br />
<th> <br />
</tr> <br />
<br />
<br />
should look more like . . . <br />
<br />
<tr><br />
<td width="100%"><br />
<Font size="2" face="arial">[<u>About Site</u>&nbsp;[<u>FAQ</u>]<br />
[<u>Advertise</u>]<br />
[u>Link to us</u>]</font></td><br />
</tr><br />
<br />
I wouldnt use <th> at all.<br />
<br />
-b<!--content-->. . . but put spaces between your nav items.<br />
<br />
Geeze I am tired . . . I'm going home. listen to the other guys who have the brian power to proof their own code before sending it . . .what they are trying to say is this.<br />
<br />
1) A <th> is only for a header row, and is of very little use<br />
<br />
2) Put your entire left nav in one TD and align it to the top -- that way it is separate from your main content.<br />
<br />
3)create a spacer column so that your text and your nav aren't right on top of each other<br />
<br />
4)and validate your code -- HTML tidy is a good choice for this.<br />
<br />
I am going home now.<br />
<br />
Good luck -- once you get those kinks worked out, this page'll look nice.<br />
<br />
-beth<!--content-->Thanks Beth! Code works Great :D I still need to fix the <th> though. But I do have another question? In your code you made the "Site News" with text under it all in 1 <TD> and in <p>. My Problem is that I would like to have the top "Site News" bgcolor d3d3d3 and the bgcolor for the text under it white. Thats why in the first version I had it in 2 <td>'s. <br />
<br />
So how am I able to do this? I know if I start messing with it, it probably go south...LOL:) :D...thats why asking you folks first.<br />
<br />
<br />
Thanks much,<br />
<br />
J MSD :D :D :D :D :D......<!--content-->try putting a nested table in your main content area.<br />
<br />
In otherwords:<br />
<br />
REPLACE THIS:<br />
<br />
<!---Section Header goes here---><p><Font size="3" face=arial>Site News</font></p> <br />
<br />
WITH THIS:<br />
<!--- Section Header Table ---><br />
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#d3d3d3"><br />
<tr><br />
<td width="100%" valign="top"><font face="airal, helvetica, sans serif" size="3" color="#ffffff"><br />
<p>HEADER TEXT HERE</p><br />
</font><br />
</td><br />
</tr><br />
</table><br />
<!--- End section Header table ---><br />
<br />
CONTINUE WITH THE BODY CONTENT FROM HERE DOWN<br />
<br />
Again though, look into replacing your font tags with a stylesheet.<br />
<br />
Check through the recent threads, there was a good tutorial recommended. Also check out <!-- w --><a class="postlink" href="http://www.webmonkey.com">www.webmonkey.com</a><!-- w --> They have a decnet introductory tutorial that will teach you the basics of stylesheets.<br />
<br />
They are *MUCH MUCH* better for styling text than font tags -- but since font tags is what you are using at the moment, the code above will work for you.<br />
<br />
I have had coffee and checked my code too -- so you should be good to go.<br />
:)<br />
<br />
-beth<!--content-->
 
Back
Top