colored border in img

liunx

Guest
hi<br />
is there a way to code in html (or css) a COLORED border="x" inside the image tag?<!--content-->Yep!<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Oh, you wanted to see how? :D<br />
<br />
img.border {border: 5px dashed #33CC33;} would give you a 5px wide, dashed line border in a "pretty" green color around your image when you add the class="border" to your img tag. If you wanted a solid border, you'd use "solid" instead of "dashed" and of course the other values can be changed to suit as well.<br />
<br />
Actually, I distilled this one from an overly complex, but still excellent article at <!-- m --><a class="postlink" href="http://www.evolt.org/article/CSS_Image_Border_Rollovers/22/17586/index.html">http://www.evolt.org/article/CSS_Image_ ... index.html</a><!-- m --> entitled CSS Image Border Rollovers which is a really neat CSS trick.<br />
<br />
Neil<!--content-->thanks a lot: its just perfectly what i wanted!<!--content-->
 
Back
Top