Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem setting table width


Guest

Recommended Posts

I have set all table widths to 800pixels and all pages are ok with the exception of one.

 

I have a category with 2 sub-categories, and if you click on the main category the table spreads off-screen

 

If you go to http://www.normwright.com/catalog and click on categories, creative you will see what I mean

 

Have ckeched all files to make sure width is set to "800"

 

Has anyone seen this before

Link to comment
Share on other sites

Found the problem

 

In the index.php, it checks to see if categories are nested, which they are.

 

There I have to set the pixel width I need

 

Works OK now

 

if ($category_depth == 'nested') {

$category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");

$category = tep_db_fetch_array($category_query);

?> <td width="793" valign="top"><table border="0" width="400" ALIGN="CENTER" cellspacing="0" cellpadding="0">

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...