January 30th, 2006, 18:41
image border color
I'm using HTML. I have several pictures and I would like those taken from the backside to have a different colored border than those from the front. Only about 5% of the images will have an oddly colored border.
bordercolor is not an accepatble attribute for the img tag, so what I have to do is put the image in a one cell table and control the background color and cellpadding of the table.
Will a 1X1 table with cellpadding=n , border=0 , containing only an image (vspace=hspace=0) behave and fit like that image with border=n?
Or is there an easier way to control the border color of an individual image?
January 30th, 2006, 20:25
border=0 will not have border=n
border=0 will have border=0
January 31st, 2006, 09:33
I'm not sure I was clear:
Case I: img(border=0) inside cell (cellpadding=n) of a 1X1 table (border=0)
Case II: img with border=n
The color of the cell in case I would substitue for the color of the imgborder in case II.
It seems that these two cases should have the same result.
January 31st, 2006, 13:10
<img src="..." style="border-color: red; border-width: 2px;">
January 31st, 2006, 14:20