Guest Posted April 1, 2005 Share Posted April 1, 2005 I am having a strange layout problem with on of the catagories on a site. The catagory images are breaking un evenly. So I have 2 images above 4 images. All the other catagory pages are fine and even like 3 above three or 2 above two. What could be causing this and how can I fix it. I tried adjusting the layout on the index page but couldn't seen to get it right. Any advice would be appreciated. Here's the page Pieces of Argentina Thanks Shelby <_< Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2005 Share Posted April 2, 2005 Ok so I have found where the max number of catagories is set in the index.php. $number_of_categories = tep_db_num_rows($categories_query); $rows = 1; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(3 / 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>' . '</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"; } } Can Ichange this to fix this problem, confused Thanks Shelby Link to comment Share on other sites More sharing options...
tobyk Posted April 2, 2005 Share Posted April 2, 2005 have you looked at your admin area to see how you have them weighted? you can change the position of them in there...maybe you have some numbers out of wack Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2005 Share Posted April 6, 2005 I'm wondering the same.. I've messed with these numbers but believe the rabbit hole goes deeper. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.