+ 3

How can we give a color to the border that we used in image?

22nd May 2017, 4:10 PM
Shaswat Singh
Shaswat Singh - avatar
2 Respostas
+ 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
22nd May 2017, 4:42 PM
Eremie Gillowei
Eremie Gillowei - avatar
0
Why not simply set the image border? img { border: 1px solid #00f; } or specific images img.framed { border: 1px solid #00f; }
22nd Apr 2018, 2:23 AM
Spider38E
Spider38E - avatar