Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

table inside header is messed up


Graveyard666

Recommended Posts

I have a shopping cart in my header, and it shows up and functions properly in Firefox but not in MSIE can anyone take a look and see why this is? In MSIE its aligned to the left instead of center.

 

www.timsplumbing.com

 

 

 

jeff

Link to comment
Share on other sites

<!-- Header Cart //-->
<td width="780" align="center" valign="top"><table width="780" border="0" cellpadding="0" cellspacing="0" class="text">
<!-- Header Cart2 //-->
<td class="headerCart_contents" width="161" height="61" align="center">You Have    0 Products In Your Cart<br><a href="https://host23.ipowerweb.com/~toiletta/shopping_cart.php?osCsid=3ab8158b846f2e865bae40f3706e2219" class="headerCart_checkout">Cart Contents</a>  |  <a href="https://host23.ipowerweb.com/~toiletta/checkout_payment.php?osCsid=3ab8158b846f2e865bae40f3706e2219" class="headerCart_checkout"">Checkout</a>
</td>
<!-- Header Cart End //-->
                 
               </tr>
             </table>

 

in the above code you are missing a <tr> tag this might be the problem

 

<!-- Header Cart //-->
<td width="780" align="center" valign="top"><table width="780" border="0" cellpadding="0" cellspacing="0" class="text">
<!-- Header Cart2 //-->
//ADDED tr TAG
<tr>
<td class="headerCart_contents" width="161" height="61" align="center">You Have    0 Products In Your Cart<br><a href="https://host23.ipowerweb.com/~toiletta/shopping_cart.php?osCsid=3ab8158b846f2e865bae40f3706e2219" class="headerCart_checkout">Cart Contents</a>  |  <a href="https://host23.ipowerweb.com/~toiletta/checkout_payment.php?osCsid=3ab8158b846f2e865bae40f3706e2219" class="headerCart_checkout"">Checkout</a>
</td>
<!-- Header Cart End //-->
                 
               </tr>
             </table>

Link to comment
Share on other sites

I added the <TR> like you said but its still out of alignment

 

 

<!-- Header Cart //-->
<td width="780" align="center" valign="top"><table width="780" border="0" cellpadding="0" cellspacing="0" class="text">
<!-- Header Cart2 //-->
<td class="headerCart_contents" width="161" height="61" align="center">You Have    0 Products In Your Cart<br><a href="https://host23.ipowerweb.com/~toiletta/shopping_cart.php?osCsid=3ab8158b846f2e865bae40f3706e2219" class="headerCart_checkout">Cart Contents</a>  |  <a href="https://host23.ipowerweb.com/~toiletta/checkout_payment.php?osCsid=3ab8158b846f2e865bae40f3706e2219" class="headerCart_checkout"">Checkout</a>
</td>
<!-- Header Cart End //-->
                 
               </tr>
             </table>

 

in the above code you are missing a <tr> tag this might be the problem

 

<!-- Header Cart //-->
<td width="780" align="center" valign="top"><table width="780" border="0" cellpadding="0" cellspacing="0" class="text">
<!-- Header Cart2 //-->
//ADDED tr TAG
<tr>
<td class="headerCart_contents" width="161" height="61" align="center">You Have    0 Products In Your Cart<br><a href="https://host23.ipowerweb.com/~toiletta/shopping_cart.php?osCsid=3ab8158b846f2e865bae40f3706e2219" class="headerCart_checkout">Cart Contents</a>  |  <a href="https://host23.ipowerweb.com/~toiletta/checkout_payment.php?osCsid=3ab8158b846f2e865bae40f3706e2219" class="headerCart_checkout"">Checkout</a>
</td>
<!-- Header Cart End //-->
                 
               </tr>
             </table>

Link to comment
Share on other sites

<td class="headerCart_contents" width="161" height="61" align="center">

 

I think this will align the text in the center of the box but it will not make the box align in the center.

 

What you need 3 tables in a row. Left one width="310", right one width="310" and that leaves your 160 for the center one.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...