james66 Posted February 28, 2011 Share Posted February 28, 2011 I/m working with 2.3.1 and I have changed the new_products.php to show 5 columns of product images on my home page which may sound a little cluttered but I'm happy with the layout except for the little problem of the last (left) 2 columns being obviously closer together than the other columns. I can't see how to space all of the columns equally. It seems such a straight forward problem to solve but I just can't see where to fix this. Could someone please point me in the right direction? Any help will be much appreciated - if I keep scratching my head with this one I'll be bald(er) by the end of the day. James Link to comment Share on other sites More sharing options...
♥kymation Posted February 28, 2011 Share Posted February 28, 2011 Did you change the column width when you changed the number of columns? In this line in includes/modules/new_products.php $new_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br />' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td>'; The 33% is the width of a column (one-third of the table.) You need to change that to 20% for 5 columns. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.