Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Border around narrow center store.


Recommended Posts

I looked around here for hours and couldn't find a decent straight answer and so I solved the problem on my own and thought I'd share it.

 

Example at: My site

 

Here's code. Place at top of header.php in includes folder. Only thing you'll need to do.

//BORDER AROUND CART
print ('<table width="750" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
      
    <tr>
      <td bgcolor="#FFFFFF">');

Link to comment
Share on other sites

Think your site is really nice, and i have been looking for the exact code you paste into here,

thank you very much.. now i can start configure my site.. will share it once im near the finish line :)

 

Thnx / Andrew :D

Link to comment
Share on other sites

  • 4 weeks later...

In header:

<table width="750" cellpadding="0" cellspacing="0" class="outerbox" align="center">
?<tr>
? ?<td>

 

In footer:

 ? ?</td>
?</tr>
</table>

 

In stylesheet:

 

.outerbox {
?border: 1px solid black;
?padding: 5px;
}

Link to comment
Share on other sites

Try adding

 

<? php    in front of

 

and  ?>  behind the code you pasted in.

hey that's funny, if that's true one might as well replace:

<?php 
//BORDER AROUND CART
print ('<table width="750" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
      
    <tr>
      <td bgcolor="#FFFFFF">');
?>

with (so don't wrap it in <?php ?> this time!):

<!-- BORDER AROUND CART -->
<table width="750" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
      
    <tr>
      <td bgcolor="#FFFFFF">

why switch to php only to execute a static print and then switch back again?

 

By the way, I would prefer to use a div for this and add the settings to the stylesheet, but maybe that's more a matter of taste.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...