Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Want border around images


Recommended Posts

When you are viewing the products on the home page and/or clicking thru categories, I am wanting to put borders around the products. Right now the images are next to one another with the title and price underneath. I want to show some seperation with borders around them.


Does anyone know how to do this?





Link to comment
Share on other sites

Does anyone know how to do this?

using html table you can create the border around the images

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

  • 4 months later...

In your includes/modules/new_products.php find


$new_prods_content = '<table border="0" width="100%" cellspacing="0" cellpadding="2">';


change it to


$new_prods_content = '<table border="0" width="100%" cellspacing="10" cellpadding="2">';


This adds spacing between the cells within the table.


Then in the same file find


<td width="33%" align="center" valign="top">


and change it to


<td width="33%" align="center" valign="top" class="newproductsbgtd">


Then in your stylesheet.css add


.newproductsbgtd {

background: #ff0000;

border: solid 1px #ffffff;

-moz-border-radius: 10px;

border-radius: 10px;



Alter the two colours to match your site.


Link to comment
Share on other sites


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

  • Create New...