+ 3
How can we give a color to the border that we used in image?
2 Answers
+ 3
you could wrap your images in an < a > tag, Use CSS to set the color and to keep it seperate from the color of your other links. For example :
<a class =" imgbord" href="javascript : ;">< img name =" img01 " src ="myimage .gif " border ="3 " bordercolor="# ff0000 ">< / a >
Then you specify the border color by defining a ' class ' using CSS in the <head > section of your page.
<style type ="text / css ">
A.imgbord: link {color : # ff0000 ;}
A.imgbord: active {color : # ff0000 ;}
A.imgbord: visited {color : # ff0000 ;}
A.imgbord: hover {color : # ff0000 ;}
</ style>
The above would give your image a red border . You still specify the width of the border in your image tag
0
Why not simply set the image border?
img {
border: 1px solid #00f;
}
or specific images
img.framed {
border: 1px solid #00f;
}