...

View Full Version : Changing an image border's color



techgearfree
02-26-2005, 04:05 AM
I tried to change the color of the border I haave around an image, but it doesn't work:

<tr>
<td width="16%" class="choice"> <a onmouseover="doTooltip(event,1)" onmouseout="hideTip()">
<p><img src="images/mp3.gif" border="1" bordercolor="#FF0000"><br /><a onmouseover="">
Nike Runners MP3<br />
<input type="radio" name="item" value="1">
</p>

Thanks

Daf
02-26-2005, 04:09 AM
Hi,

Try an inline style there - like this:

<img src="images/mp3.gif" style="border: 1px solid #ff0000">

By doing so you can also control the thickness of the border.

Hope this helps. :)

Thanks
Daf

techgearfree
02-26-2005, 04:10 AM
Thanks!

Daf
02-26-2005, 04:13 AM
You're very welcome :)

Daf

chump2877
02-26-2005, 04:27 AM
or you could do:


<img src="images/mp3.gif" style="border: 1px solid red">

if you have an aversion to hexadecimal values like I do... :D

whizard
02-27-2005, 02:45 AM
Why an aversion to
#nnnnnn;?

If its just cause you can't remember the codes, grab this file. if you just use the names, (e.g. blue) then you won't be able to use many colors, considering there are 1536 of 'em

Dan



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum