Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Putting a border attribute to the images


Zuncan

Recommended Posts

Posted

Hi! ;)

 

I want to have a border around my images in the productlisting pages.

 

The code for the images looks like this:

 

if (PRODUCT_LIST_IMAGE > 0) {

      $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>';

        }

 

 

When a mean a border around my productimages I mean one like this. Translated in raw HTML:

 

<Img src="image.jpg" Border="1" Bordercolor="Pink">

 

 

Would be more than greatful if someone could help me out and modify the code as it should look like.

 

/ Zuncan - The one who asks alot, but also helps alot

So what?! Who care in a hundred years anyway?

Posted

if (PRODUCT_LIST_IMAGE > 0) {
     $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="pinkborder"') . '</a><br>';
       }

 

stylesheet.css:

 

.pinkborder {
   border: 1px solid pink;
}

Posted

Didnt work.. I did exactly what you said. Is it possible that I need to ad some code to classes/boxes.php?

So what?! Who care in a hundred years anyway?

Posted

Wait a minute! It.. Its.. Its.. working!! Thanks! To bad youre to far away for a hug man! ;)

So what?! Who care in a hundred years anyway?

Archived

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

×
×
  • Create New...