Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Border around main table?


Guest

Recommended Posts

Posted

Which PHP file should I edit to put a border around my osCom template...or is that all CSS within the stylesheet, I might have to define a class or ID in the main file, right??? any help would be greatly appreciated, thanks in advance!!

Posted

bump...anyone here??

 

Just trying to get a border around the main osC template, what file should I add a table to?? or is the table already there and all I gotta do is stylize it ?

Posted

If you open a table at the start in header.php and close it at the bottom of footer.php, that will effectively wrap everything.

Declare a new rule in the stylesheet with a border and assign it to the wrapping table, all will be good.

 

e.g.

 

CSS

table.wrapper {
 border-style: solid;
 border-width: 1px;
 border-color: #ff0000;
}


HTML >>>>> header.php Just after ?>

<table class="wrapper" border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td>


HTML >>>>> footer.php On the last line

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

 

If you want a fixed width site, change the 100% for the correct width - 760 probably. If you do that, you'll need to center it.

Archived

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

×
×
  • Create New...