Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Positioning with tables problem 2

Status
Not open for further replies.

valicon

MIS
Sep 26, 2000
125
US
Hi all,

I am designing a site and I am using tables for a menu that is off to the left of the page and I want to put content in the middle and right sections of the page. I have split the tables into cells. Everything is fine until I put in graphics in the middle table, then the menu on the left drops down to the center of the page! How can I get better positioning, I know it is hard positioning with tables, any suggestions?? Thanks all.
 
Wullie,

I have a menu on the left side of the page which is a nested table (not in code below) and then I am trying to place content in the miidle and right sides of the page, but when I do the menu drops down to the center of the page! I am trying to make my tables stay put. Here is the code:<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body bgcolor=&quot;#FFFFFF&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td><img src=&quot;elogotrans.gif&quot; width=&quot;238&quot; height=&quot;43&quot;></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;320&quot;>
<tr>
<td height=&quot;21&quot; width=&quot;21%&quot;>
<div align=&quot;center&quot;><img src=&quot;mc_bug100X25_2.gif&quot; width=&quot;100&quot; height=&quot;25&quot;></div>
</td>
<td height=&quot;21&quot; width=&quot;63%&quot;><img src=&quot;newreleases_hd.gif&quot; width=&quot;195&quot; height=&quot;40&quot;></td>
<td height=&quot;21&quot; width=&quot;16%&quot;>&nbsp;</td>
</tr>
<tr>
<td height=&quot;1128&quot; width=&quot;21%&quot; bgcolor=&quot;#FFFFCC&quot; rowspan=&quot;4&quot;>
<table width=&quot;100%&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
<div align=&quot;center&quot;></div>
</td>
<td height=&quot;1128&quot; width=&quot;63%&quot; bgcolor=&quot;#FFFFCC&quot; rowspan=&quot;3&quot;><img src=&quot;1620-arabbitts.jpg&quot; width=&quot;250&quot; height=&quot;198&quot;>
<div align=&quot;center&quot;></div>
</td>
<td height=&quot;13&quot; width=&quot;16%&quot;>&nbsp;</td>
</tr>
<tr>
<td height=&quot;16&quot; width=&quot;16%&quot;>&nbsp;</td>
</tr>
<tr>
<td height=&quot;9&quot; width=&quot;16%&quot;>&nbsp;</td>
</tr>
<tr>
<td height=&quot;1128&quot; width=&quot;63%&quot; bgcolor=&quot;#FFFFCC&quot;>&nbsp;</td>
<td height=&quot;282&quot; width=&quot;16%&quot;>&nbsp;</td>
</tr>
<tr>
<td width=&quot;21%&quot; height=&quot;2&quot;>&nbsp;</td>
<td width=&quot;63%&quot; height=&quot;2&quot;>&nbsp;</td>
<td width=&quot;16%&quot; height=&quot;2&quot;>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p><br>
</p>
</body>
</html>

 
Wullie,

Actually I just double checked that is the entire code.
Thanks
 
Ok.. Let me double check. You want some thing like the following??



******************************************************
Do you want content here???



Link Text
Link Text
Link Image Text
Link Text
Link Text


******************************************************

Also, the way that the colours are on the above code, do you want to keep them that way??

Hope this helps Wullie

 
Wullie,

Exactly, but when I insert the image the text links on the left which are in a nested table drop down below the content:******************************************************
(like this)

Image Text








Link Text
Link Text
Link
Link Text
Link Text


******************************************************

I want to keep the text links menu stable now matter what changes I make to the image area. I am trying not to use frames or CSS, what do you think? The colors I just stuck in there, I have not decided on the color scheme yet...Thanks

 
Hi mate,

Take a look at this and let me know if it is what you want..

You will have to change the image size and also put the top images in...

If you need anything altered that you cannot do, then I will do it tommorow as it is 5:30am.... [sleeping]

BTW. Run it through a validator to check for any errors as I have been drinking so there will probably be some.. [wink] The body tag should report 4 errors but ignore them...

<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
</HEAD>
<BODY BGCOLOR=&quot;#FFFFCC&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot;>
<TABLE WIDTH=&quot;100%&quot; BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot; CELLPADDING=&quot;0&quot; align=&quot;center&quot;>
<TR>
<TD BGCOLOR=&quot;#FFFFFFCC&quot; HEIGHT=&quot;80&quot; align=&quot;center&quot;>
<H2>
Your Header Images Go In Here
</H2>
</TD>
</TR>
<TR>
<TD VALIGN=&quot;TOP&quot; WIDTH=&quot;100%&quot;>
<TABLE BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR>
<TD>
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;170&quot; CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR>
<TD VALIGN=&quot;top&quot; align=&quot;center&quot;>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;400&quot; CELLPADDING=&quot;1&quot; CELLSPACING=&quot;1&quot;>
<TR>
<TD VALIGN=&quot;top&quot;>
<P><BR>
<CENTER>
<table border=&quot;0&quot; width=&quot;100%&quot;>
<tr>
<td>
<img src=&quot;whatever.gif&quot; border=&quot;0&quot; alt=&quot;Whatever&quot; height=&quot;120&quot; width=&quot;370&quot;><p>&nbsp;</p>This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....
</td>
</tr>
</table>
</CENTER>
</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;150&quot; CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR>
<TD VALIGN=&quot;top&quot; align=&quot;center&quot;>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD>&nbsp;</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>



Is that what you want???

Hope this helps
Wullie

 
LOL I'll try again..!!

The forum is trying to process the code....

Code:
<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
</HEAD>
<BODY BGCOLOR=&quot;#FFFFCC&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot;>
<TABLE WIDTH=&quot;100%&quot; BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot; CELLPADDING=&quot;0&quot; align=&quot;center&quot;>
<TR> 
<TD BGCOLOR=&quot;#FFFFFFCC&quot; HEIGHT=&quot;80&quot; align=&quot;center&quot;>
<H2>
Your Header Images Go In Here
</H2>
</TD>
</TR>
<TR>
<TD VALIGN=&quot;TOP&quot; WIDTH=&quot;100%&quot;>
<TABLE BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR> 
<TD> 
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;170&quot; CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR> 
<TD VALIGN=&quot;top&quot; align=&quot;center&quot;> 
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD> 
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;400&quot; CELLPADDING=&quot;1&quot; CELLSPACING=&quot;1&quot;>
<TR> 
<TD VALIGN=&quot;top&quot;>
<P><BR>
<CENTER>
<table border=&quot;0&quot; width=&quot;100%&quot;>
<tr>
<td>
<img src=&quot;whatever.gif&quot; border=&quot;0&quot; alt=&quot;Whatever&quot; height=&quot;120&quot; width=&quot;370&quot;><p>&nbsp;</p>This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....
</td>
</tr>
</table>
</CENTER>
</TD>
</TR>
</TABLE>
</TD>
<TD> 
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;150&quot; CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR> 
<TD VALIGN=&quot;top&quot; align=&quot;center&quot;>                      
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Hope this helps Wullie

 
Right, this is getting annoying now!!!

Code:
<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
</HEAD>
<BODY BGCOLOR=&quot;#FFFFCC&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot;>
<TABLE WIDTH=&quot;100%&quot; BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot; CELLPADDING=&quot;0&quot; align=&quot;center&quot;>
<TR> 
<TD BGCOLOR=&quot;#FFFFFFCC&quot; HEIGHT=&quot;80&quot; align=&quot;center&quot;>
<H2>
Your Header Images Go In Here
</H2>
</TD>
</TR>
<TR>
<TD VALIGN=&quot;TOP&quot; WIDTH=&quot;100%&quot;>
<TABLE BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR> 
<TD> 
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;170&quot; CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR> 
<TD VALIGN=&quot;top&quot; align=&quot;center&quot;> 
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD> 
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;400&quot; CELLPADDING=&quot;1&quot; CELLSPACING=&quot;1&quot;>
<TR> 
<TD VALIGN=&quot;top&quot;>
<P><BR>
<CENTER>
<table border=&quot;0&quot; width=&quot;100%&quot;>
<tr>
<td>
<img src=&quot;whatever.gif&quot; border=&quot;0&quot; alt=&quot;Whatever&quot; height=&quot;120&quot; width=&quot;370&quot;><p>&nbsp;</p>This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....
</td>
</tr>
</table>
</CENTER>
</TD>
</TR>
</TABLE>
</TD>
<TD> 
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;150&quot; CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR> 
<TD VALIGN=&quot;top&quot; align=&quot;center&quot;>                      
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
<TR> 
<TD>&nbsp;</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Hope this helps
Wullie

 
I give up!!!

All the empty <TD> </TD> tags should have the following in them but remove the spaces..

& n b s p ;

I worked out how to post this code correctly the other day but for some reason it isn't working now...

Let me know how you get on with it...

Hope this helps Wullie

 
One more attempt.. I'm determined to get this to work!! LOL

<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
</HEAD>
<BODY BGCOLOR=&quot;#FFFFCC&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot;>
<TABLE WIDTH=&quot;100%&quot; BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot; CELLPADDING=&quot;0&quot; align=&quot;center&quot;>
<TR>
<TD BGCOLOR=&quot;#FFFFFFCC&quot; HEIGHT=&quot;80&quot; align=&quot;center&quot;>
<H2>
Your Header Images Go In Here
</H2>
</TD>
</TR>
<TR>
<TD VALIGN=&quot;TOP&quot; WIDTH=&quot;100%&quot;>
<TABLE BORDER=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR>
<TD>
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;170&quot; CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR>
<TD VALIGN=&quot;top&quot; align=&quot;center&quot;>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
<A HREF=&quot;#&quot;>My Link Here</A><br>
</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;400&quot; CELLPADDING=&quot;1&quot; CELLSPACING=&quot;1&quot;>
<TR>
<TD VALIGN=&quot;top&quot;>
<P><BR>
<CENTER>
<table border=&quot;0&quot; width=&quot;100%&quot;>
<tr>
<td>
<img src=&quot;whatever.gif&quot; border=&quot;0&quot; alt=&quot;Whatever&quot; height=&quot;120&quot; width=&quot;370&quot;><p>&amp;nbsp;</p>This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....This area is where your image goes and then text below or what ever you want....
</td>
</tr>
</table>
</CENTER>
</TD>
</TR>
</TABLE>
</TD>
<TD>
<TABLE BORDER=&quot;0&quot; WIDTH=&quot;150&quot; CELLPADDING=&quot;0&quot; CELLSPACING=&quot;0&quot;>
<TR>
<TD VALIGN=&quot;top&quot; align=&quot;center&quot;>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
This is text.<br>
</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
<TR>
<TD>&amp;nbsp;</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Hope this helps
Wullie

 
Wullie,

Thanks for the code! I tested it and when I place the image in the middle content area the list of links in the left drop down just like my code! How can we get the list of links to stay put on the left(this is going to be the menu) when we put a image in the middle? I had this problem awhile back and have been out of the designing biz for awhile and I cannot remember how I solved this issue. I appreciate your help!
 
Actually it is happenning with any size image! Is there not a command that keeps the other table in place regardless of what happens in the center table? I cannot remember :(
 
Seems to me that you have your valigns in the wrong td tags...

Since you've nested a table within a cell the position of the table is set by the enclosing cell. This is why when you insert the image, the cell by default pushes the table with your links down toward the center of the screen.

Fix it by adding valign=top to the td tag that encloses the table that contains your links and also for the 'this is text' table you have on the right hand side.

A good idea when you have probs with tables is to set border=1 so that you can see the outline of your tables, then when it's sorted switch it back to zero.....

HTH

pabs.

 
Pabsh,

Thanks for the advice, it works like a charm. I really appreciate it. Thanks all!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top