Forum Moderators: not2easy
I have a DIV within which I want all text links to have a border-bottom (to give the appearance of underline) but not with images that are linked.
So, if the text is like this:
<div class="MYSTUFF">
This is my killer text, which points to <a href="#textlink">some text link</a> and then also displays this image to go with it: <a href="#imagelink"><img src=""></a>. And then there's text after that.
</div>
In the above, I want the "some text link" to be underlined, but not the image. I currently have this code:
.MYSTUFF a {border-bottom: 1px #ccc solid }
But this also enables the underline on the image. I want only text underline, no image underline. Would appreciate any thoughts.
}
.MYSTUFF a:link img, .MYSTUFF a:visited img {
padding:0px!important;
border:0px!important;
}
.MYSTUFF img {
border:1px solid #ccc;
}
should give text links a grey bottom border, image links no border, and non-linked images a grey border.
but im not sure what you really want:
I want only text underline, no image underline. Would appreciate any thoughts.
but that disables the border on the image only, not on the A tag. (In any case, I need the borders around the IMG, I just need to get rid of the A border).
-B