Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a CSS class to the sub category images...


JEWbacca

Recommended Posts

Posted

I added this to my stylesheet:

 

 
}
.CustBorder {
border: 1px solid #ed0f87;
}

 

Then changed the line in my index.php that reads:

 

<tr><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></class>' . $categories['categories_name'] . '</a></td></tr>' .

 

to:

 

<tr><td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '"class="CustBorder">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br></class>' . $categories['categories_name'] . '</a></td></tr>' .

 

The only change here was that I added

class="CustBorder"

.

 

The problem is that it seems that the border is only on the left side and the bottom of the image (not the right and top). Also how can this be changed so the text is not bordered also (only the image)?

 

Thanks in advance for any ideas.

 

Nathan Levy

Archived

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

×
×
  • Create New...