help aligning tables

liunx

Guest
Hi, I am having trouble getting 2 of my 2 tables to go next to each other. the one always is under the other. <!-- m --><a class="postlink" href="http://www15.brinkster.com/zonewebdesign/js/test.html">http://www15.brinkster.com/zonewebdesign/js/test.html</a><!-- m --><br />
<br />
<table style="border:1px groove black; width:130" cellspacing=0 cellpadding=0><br />
<tr><td align=left bgcolor=black><br />
<font size="2" face="arial" color=silver><u><P> </P></u></font><br><br />
</td></tr><br />
<tr><td align=center border=2><br />
<table cellpadding=0 cellspacing=0 name=link_table id=link_table><br />
<tr><br />
<td class="tds" onmouseover="fadeImg2(0)" onmouseout="fadeImgend2(0)" onclick="window.location='#';" style="font-family:arial; border:1px solid silver;background-color:black; width:100; text-align:center; color:silver;">Misc</td><br />
</tr><br />
<tr><br />
<td class="tds" onmouseover="fadeImg2(1)" onmouseout="fadeImgend2(1)" onclick="window.location='#';" style="font-family:arial; border:1px solid silver;background-color:black; width:100; text-align:center; color:silver;">Forms</td><br />
</tr><br />
<tr><br />
<td class="tds" onmouseover="fadeImg2(2)" onmouseout="fadeImgend2(2)" onclick="window.location='#';" style="font-family:arial; border:1px solid silver;background-color:black; width:100; text-align:center; color:silver;">Buttons</td><br />
</tr><br />
<tr><br />
<td class="tds" onmouseover="fadeImg2(3)" onmouseout="fadeImgend2(3)" onclick="window.location='#';" style="font-family:arial; border:1px solid silver;background-color:black; width:100; text-align:center; color:silver;">Images</td><br />
</tr><br />
<tr><br />
<td class="tds" onmouseover="fadeImg2(4)" onmouseout="fadeImgend2(4)" onclick="window.location='#';" style="font-family:arial; border:1px solid silver;background-color:black; width:100; text-align:center; color:silver;">BG Effects</td><br />
</tr><br />
<tr><br />
<td class="tds" onmouseover="fadeImg2(5)" onmouseout="fadeImgend2(5)" onclick="window.location='#';" style="font-family:arial; border:1px solid silver;background-color:black; width:100; text-align:center; color:silver;">Time/Calenders</td><br />
</tr><br />
<tr><br />
<td class="tds" onmouseover="fadeImg2(6)" onmouseout="fadeImgend2(6)" onclick="window.location='#';" style="font-family:arial; border:1px solid silver;background-color:black; width:100; text-align:center; color:silver;">Menus & Navigation</td><br />
</tr><br />
<tr><br />
<td class="tds" onmouseover="fadeImg2(7)" onmouseout="fadeImgend2(7)" onclick="window.location='#';" style="font-family:arial; border:1px solid silver;background-color:black; width:100; text-align:center; color:silver;">System & Browser</td><br />
</tr><br />
</td></tr><br />
</table><br />
</table><br />
<br />
<table width="100%" border="0" align="center" valign="center"><br />
<tr> <br />
<td><iframe src=http://www.webdeveloper.com/forum/archive/index.php/"http://www15.brinkster.com/zonewebdesign/news.html" name="middle" width="100%" height="480"></iframe></td><br />
</tr><br />
</table><!--content-->Tables are block style elements. Thus they can't be aligned side-by-side without CSS positioning...<!--content-->well could you help me with that? I really want these things side by side...<!--content-->Here's a quick and dirty example:<br />
<br />
<div style="position: absolute; top: 0px; left: 0px;"><br />
<table border="1"><br />
<tr><br />
<td>Table One</td><br />
</tr><br />
</table><br />
</div><br />
<br />
<div style="position: absolute; top: 0px; left: 80px;"><br />
<table border="1"><br />
<tr><br />
<td>Table two</td><br />
</tr><br />
</table><br />
</div><!--content-->thx I can figure out the rest that gives me a basic idea.<!--content-->You bet...<!--content-->hi there,<br />
<br />
to align those tables, expand on what you've already done... nest them. your first main table is nested but the second main is not. nest them in one large table as if they were table cells. <br />
<br />
on further observation, why not use css to define your menu styles instead of retyping a style for each individual menu item? they are all the same so make one single declaration[?] <br />
<br />
also, your menu text is riiiiiiight on the edge there. a padding of 2 or 3 would look great: padding:2px;<br />
<br />
i like the idea of using divisions with absolute positioning. make sure you leave enough space for the menu on the left when/if you use that. test it with several resolutions afterwards to make sure it still looks 'right'.<br />
<br />
divaone...<!--content-->
 
Back
Top