...

View Full Version : changing the border of an image



jasonc310771
02-16-2008, 11:37 PM
please can someone help tell me how i change the border of the image from the code i am currently use.

thanks




<a href="images/5.jpg" target="_blank" style="text-decoration: none"><img src="images/5.jpg" width="143" border="2"></a>

GO ILLINI
02-17-2008, 01:10 AM
2 ways:
to style all images inside links:
Place this code inside your head tags


<style>
a img {
border:5px solid #555555;
}
</style>

to style just this image:

<a href="images/5.jpg" target="_blank" style="text-decoration: none"><img src="images/5.jpg" width="143" style="border:5px solid #555555;"></a>In both examples 5px is the width of the border, the border is solid(can be dashed,...), and the color is #555555.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum