 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
NaOH
Joined: 15 Apr 2005 Posts: 2 Location: Canada
|
Posted: Fri Apr 15, 2005 1:20 am Funky Table Layout Problems. |
|
|
|
I've got a table set up with images, the code of which follows:
| Code: |
<table width="800px" height="600px">
<tr>
<td colspan="2"><table cellpadding="0px" cellspacing="0px">
<tr>
<td><img src="1.jpg" width="800px" height="85px" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table cellspacing="0">
<tr>
<td><img src="2.jpg" width="180" height="220px" /></td>
<td><a href="/tracker/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','3a.jpg',1)"><img src="3.jpg" alt="Tracker" name="Image5" width="230px" height="220px" border="0" id="Image5" /></a></td>
<td><img src="4.jpg" width="25px" height="220px" /></td>
</tr>
<tr>
<td colspan="3"><img src="6.jpg" width="435px" height="28px" /></td>
</tr>
</table></td>
<td><table cellspacing="0">
<tr>
<td colspan="2"><img src="5.jpg" width="365px" height="85px" /></td>
</tr>
<tr>
<td><a href="/forum/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','7a.jpg',1)"><img src="7.jpg" alt="Forum" name="Image7" width="170px" height="163px" border="0" id="Image7" /></a></td>
<td><img src="8.jpg" width="195px" height="163px" /></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table cellspacing="0">
<tr>
<td><img src="9.jpg" width="475px" height="52px" /></td>
<td><a href="/test/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','10a.jpg',1)"><img src="10.jpg" alt="Test" name="Image10" width="100px" height="52px" border="0" id="Image10" /></a></td>
<td><img src="11.jpg" width="225px" height="52px" /></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table cellspacing="0">
<tr>
<td><img src="12.jpg" width="328px" height="155pz" /></td>
<td><a href="/test/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','13a.jpg',1)"><img src="13.jpg" alt="Test" name="Image13" width="158px" height="155px" border="0" id="Image13" /></a></td>
<td><img src="14.jpg" width="314px" height="155px" /></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table cellspacing="0">
<tr>
<td><img src="15.jpg" width="800px" height="60px" /></td>
</tr>
</table></td>
</tr>
</table>
|
Please try to ignore the ugly image tags on 4 of them (I'm using Dreamweaver's bloated preloading rollover code for now until someone alerts me to something happier...).
Now, that's obviously a bitch to get your mind around. The following link will take you to that HTML file with the images and the rollovers and everything set up.
http://www.metal-torrents.com/splash3/
The problem, as you will no doubt rapidly see as you open that link, is that nothing lines up. Cellpadding is turned off, table borders are turned off (if I'm not mistaken...) and so there shouldn't be a problem, and everything should be kosher.
There's obviously something I'm doing wrong here. Any help would be greatly appreciated. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8314 Location: Castle Pines North, CO USA
|
Posted: Fri Apr 15, 2005 4:14 am |
|
|
|
Try something like:
| Code: |
<table border="0" width="800" cellspacing="0" cellpadding="0">
<tr>
<td width="437"><img src="2.jpg" width="180" height="220px" /><a href="/tracker/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','3a.jpg',1)"><img src="3.jpg" alt="Tracker" name="Image14" width="230px" height="220px" border="0" id="Image14" /></a><img src="4.jpg" width="25px" height="220px" /><br>
<img src="6.jpg" width="435px" height="28px" /></td>
<td><img src="5.jpg" width="365px" height="85px" /><br>
<a href="/forum/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','7a.jpg',1)">
<img src="7.jpg" alt="Forum" name="Image15" width="170px" height="163px" border="0" id="Image15" /></a><img src="8.jpg" width="195px" height="163px" /></td>
</tr>
</table>
<table border="0" width="800" cellspacing="0" cellpadding="0">
<tr>
<td><img src="9.jpg" width="475px" height="52px" /><a href="/test/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','10a.jpg',1)"><img src="10.jpg" alt="Test" name="Image16" width="100px" height="52px" border="0" id="Image16" /></a><img src="11.jpg" width="225px" height="52px" /></td>
</tr>
<tr>
<td><img src="12.jpg" width="328px" height="155px" /><a href="/test/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','13a.jpg',1)"><img src="13.jpg" alt="Test" name="Image17" width="158px" height="155px" border="0" id="Image17" /></a><img src="14.jpg" width="314px" height="155px" /></td>
</tr>
</table>
<table border="0" width="800" cellspacing="0" cellpadding="0">
<tr>
<td><img src="15.jpg" width="800px" height="60px" /><br>
<img src="1.jpg" width="800px" height="85px" /></td>
</tr>
</table> |
I think that will fix it |
|
NaOH
Joined: 15 Apr 2005 Posts: 2 Location: Canada
|
Posted: Fri Apr 15, 2005 9:22 am |
|
|
|
| Something still doesn't line up quite right. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8314 Location: Castle Pines North, CO USA
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|