Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Thumbnail Border?


Guest

Recommended Posts

Hi,

 

Is there an easy way to outline all the thumb nails with a simple 1 pixel border of a colour of my choice? Like via the html <img> tag or something? BTW, I did try the image tag in the new_products.php and it didn't work as expected.

 

I want only the thumbsnails outlined though, like in 'new products', 'reviewed' and 'what's new' etc. Not the full orginal picture. I

 

Any help greatly appreciated, this has been annoying me for a while!

 

Cheers,

Ed

Link to comment
Share on other sites

The best way I have found to do this, especially if you want to have control over the border color, is to insert it into a table cell and then control the border of the table through style sheets.

 

Alternatively, you can add a border to an image, this is easy. Controlling the color doesn't seem reliable across browsers at all.

 

<img src="ski.jpg" BORDER=1> will give you a one pixel border, though it's usually blue. You can try adding a tag like bordercolor='red', but you won't have much success on all browsers since this isn't really supported.

 

Dan

Dan Stevens

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...