The standard category listing code does not allow addressing the name separately from the whole individual category item. There is only a link containing an image, a <br /> and text. You could use absolute positioning to move the image down and let the text rise to the top (since the image would no longer be occupying any space in the layout), but this would as stevesh mentioned require the images to all be the same height (or at least, a given maximum height, which all categories would use whether their images needed it or not).
Other than that, you would need to make a small change to the output code in /includes/modules/your_template/category_row.php.
Find this
PHP Code:
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');
and change to this
PHP Code:
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . '<div class="catName">' . $categories->fields['categories_name'] . '</div>' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a>');
The relocated and expanded
'<div class="catName">' . $categories->fields['categories_name'] . '</div>' .
puts the name first and lets you address it individually if desired.
Bookmarks