Home | Store | osCommerce Tutorials

osCommerce Main Categories Content Customization Example

Example 4-3: Set the border of Inner Table to zero


In previous tutorials, the osCommerce Main Categories is contained in a table and a background color was added to the rows of Parent Categories. The result is shown in the picture below:

osCommerce Main Categories Customization example

In this osCommerce tutorial, let's try to remove the border of the Inner Table that contained the osCommerce Main Categories Content.

Set Inner Table Border to zero

Okay! Let's set the table border to zero and see the effect

function tep_show_category($counter) {
global $tree, $categories_string, $cPath_array;

if ($counter == 1) {
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\"
class=\"infoBoxContents\" >" . "\n";
}

Result:

osCommerce Main Categories Customization example

osCommerce Main Categories Customization example

The osCommerce Main Categories Contents looks very good up to now. Actually many osCommerce shops are using this design.