gib65
02-16-2012, 08:23 PM
Hello,
I have the following HTML:
<html>
<head>
</head>
<body>
<table style="height: 100%;" cellspacing=0 cellpadding=0 border=1>
<tr><td colspan=2 style="height: 100px; text-align: center;">
<span style="font-size: 24px;">
<img src="H&R banner.jpg" border=0></span></td></tr>
<tr>
<td style="width: 200px; padding-top: 10px; text-align: center;">
<iframe style="width=100%; height: 100%;" src="news.html" scrollable=yes frameborder=no></iframe>
</td>
<td style="width: 530px;">
<table style="width: 100%; height: 100%" cellspacing=0 cellpadding=0 border=0>
<tr>
<td style="height: 50px; background: url('menu_bg.jpg'); text-align: center;">
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td><img src="home.jpg" border=0></td>
<td><img src="properties.jpg" border=0></td>
<td><img src="about.jpg" border=0></td>
<td><img src="contact.jpg" border=0></td>
</tr>
</table>
</td></tr>
<tr>
<td style="text-align: center;">
<iframe style="width: 100%; height: 100%;" src="content.html" srollable=yes frameborder=0></iframe>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
The line in bold is causing me trouble.
If I change border=1 to border=0, suddenly my table goes all out of wack. The banner at the top all of a sudden shift about 20 pixels to the right becoming misaligned with everything else in the table.
Does anyone know why this is?
I have the following HTML:
<html>
<head>
</head>
<body>
<table style="height: 100%;" cellspacing=0 cellpadding=0 border=1>
<tr><td colspan=2 style="height: 100px; text-align: center;">
<span style="font-size: 24px;">
<img src="H&R banner.jpg" border=0></span></td></tr>
<tr>
<td style="width: 200px; padding-top: 10px; text-align: center;">
<iframe style="width=100%; height: 100%;" src="news.html" scrollable=yes frameborder=no></iframe>
</td>
<td style="width: 530px;">
<table style="width: 100%; height: 100%" cellspacing=0 cellpadding=0 border=0>
<tr>
<td style="height: 50px; background: url('menu_bg.jpg'); text-align: center;">
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td><img src="home.jpg" border=0></td>
<td><img src="properties.jpg" border=0></td>
<td><img src="about.jpg" border=0></td>
<td><img src="contact.jpg" border=0></td>
</tr>
</table>
</td></tr>
<tr>
<td style="text-align: center;">
<iframe style="width: 100%; height: 100%;" src="content.html" srollable=yes frameborder=0></iframe>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
The line in bold is causing me trouble.
If I change border=1 to border=0, suddenly my table goes all out of wack. The banner at the top all of a sudden shift about 20 pixels to the right becoming misaligned with everything else in the table.
Does anyone know why this is?