Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how would i add a line break between the sub-category boxes


Guest

Recommended Posts

Hi Guys,

 

how would i add a line break between the sub-category boxes where it spills over onto a new line.

I think it's in the following code in index...?

 

	  $cPath_new = tep_get_path($categories['categories_id']);
  $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
  echo '				<td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";
  if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
	echo '			  </tr>' . "\n";
	echo '			  <tr>' . "\n";
  }
}

 

TIA

 

Richard

Link to comment
Share on other sites

Hi Nic,

 

I need to add a further line between the cats on the main page not in the left column box?

The only <br> i can find refers to the line spacing between the left column list?? I think!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...