Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do i add a border to my product images?


fribhey

Recommended Posts

Posted

i want to add a 1px solid color border to my product images. how would i go about adding the border code (CSS) to the PHP?

 

this is the code:

$new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)

 

i basically want to add:

 

border-style: solid

border-color: #BD734E

border-width: 1px

 

do i just need to add a new style to the style sheet and apply it to the code above? how would i insert it to the code.

 

thanks

Posted

$new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="border"')

 

Then use stylesheet to set style on "border".

Posted
$new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="border"')

 

Then use stylesheet to set style on "border".

Burt,

 

thank you that worked.

Archived

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

×
×
  • Create New...