Johnny
04-01-06, 01:57 PM
ok, now this is really bizzare...
This is the contents of my global header -
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/CondomMegaStore_01.jpg" alt="" height="155" width="750"></td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="174"><img src="images/CondomMegaStore_02.gif" alt="" height="27" width="174"></td>
<td background="images/CondomMegaStore_03.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="right">
<a href="/index.htm"><img src="/images/home-button.gif" alt="Condoms Home Page" height="12" width="38" border="0"></a> <img src="/images/menu-button-divider.gif" alt="" height="12" width="14"> <a href="/about.htm"><img src="/images/help-button.gif" alt="Condoms Help" height="12" width="34" border="0"></a> <img src="/images/menu-button-divider.gif" alt="" height="12" width="14"> <a href="/mm5/merchant.mvc?Screen=SFNT&Store_Code=condom"><img src="/images/shop-button.gif" alt="Condoms Shop" height="12" width="37" border="0"></a> <img src="/images/menu-button-divider.gif" alt="" height="12" width="14"> <a href="/contact.htm"><img src="/images/contact-button.gif" alt="Contact us about Condoms" height="12" width="63" border="0"></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
If you look carefully all the tables (4 of them) are opened and closed - there are no open tags going out of the header.
Here is the code that calls the header from each template page -
<html>
<head>
<mvt:item name="head" />
</head>
<mvt:item name="body">
<mvt:item name="hdft" param="global_header" />
<table border="0" cellpadding="2" cellspacing="0" width="100%" >
But here's the weird thing - If I change the border on the very first table to 1 then display the page the border goes around EVERYTHING - the entire page (see attached)
If I then view the code something strange has happened - the final </td></tr></table> tags from the header seem to have dispeared (or at least moved)...
At the end of the header code, after the line <a href="/index.htm"><img src="/images/home-button.gif"... there are clearly 3 </TABLE> tags, but if you view the page code it looks like this -
<a href="/contact.htm"><img src="/images/contact-button.gif" width="63" height="12" border="0" alt="Contact us about Condoms"></a></div></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="0" width="100%" >
There are now only 2 </TABLE> tags between that line and the 1st line of the body code!
However, if I actually comment them out in the global header then the whole page screws up completely!
So just what the heck is going on?!?!?! :confused:
This is the contents of my global header -
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/CondomMegaStore_01.jpg" alt="" height="155" width="750"></td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="174"><img src="images/CondomMegaStore_02.gif" alt="" height="27" width="174"></td>
<td background="images/CondomMegaStore_03.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="right">
<a href="/index.htm"><img src="/images/home-button.gif" alt="Condoms Home Page" height="12" width="38" border="0"></a> <img src="/images/menu-button-divider.gif" alt="" height="12" width="14"> <a href="/about.htm"><img src="/images/help-button.gif" alt="Condoms Help" height="12" width="34" border="0"></a> <img src="/images/menu-button-divider.gif" alt="" height="12" width="14"> <a href="/mm5/merchant.mvc?Screen=SFNT&Store_Code=condom"><img src="/images/shop-button.gif" alt="Condoms Shop" height="12" width="37" border="0"></a> <img src="/images/menu-button-divider.gif" alt="" height="12" width="14"> <a href="/contact.htm"><img src="/images/contact-button.gif" alt="Contact us about Condoms" height="12" width="63" border="0"></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
If you look carefully all the tables (4 of them) are opened and closed - there are no open tags going out of the header.
Here is the code that calls the header from each template page -
<html>
<head>
<mvt:item name="head" />
</head>
<mvt:item name="body">
<mvt:item name="hdft" param="global_header" />
<table border="0" cellpadding="2" cellspacing="0" width="100%" >
But here's the weird thing - If I change the border on the very first table to 1 then display the page the border goes around EVERYTHING - the entire page (see attached)
If I then view the code something strange has happened - the final </td></tr></table> tags from the header seem to have dispeared (or at least moved)...
At the end of the header code, after the line <a href="/index.htm"><img src="/images/home-button.gif"... there are clearly 3 </TABLE> tags, but if you view the page code it looks like this -
<a href="/contact.htm"><img src="/images/contact-button.gif" width="63" height="12" border="0" alt="Contact us about Condoms"></a></div></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="0" width="100%" >
There are now only 2 </TABLE> tags between that line and the 1st line of the body code!
However, if I actually comment them out in the global header then the whole page screws up completely!
So just what the heck is going on?!?!?! :confused: