Remove the link below the image only if the anchor tag contains img
<a href="#">
<img width="103" height="100" src="img source">
</a>
for the above html code i use the following css
a {
border-bottom-style: dotted;
border-bottom-width: 1px;
}
a img {
border: 0 none;
}
Basically, what I'm trying to achieve here is to underline text links by keeping img links without any underscores. however, I think when creating text links, I also put links to images, I want any image in the link not to be underlined.
Can anyone suggest working for this?
+5
5 answers
Googling , :
a img { border:none; vertical-align:top; }
?
: ; , . - z- .
, a < img... , , . : fooobar.com/questions/1931/...
+9