silly and basic question. [solved]
Date: 02/28/05
(WebDesign) Keywords: css, web
i'm trying to achieve the simple effect of using CSS's border-bottom to fake an underline of a different color (and style).
so, i have this on my stylesheet:
a:link, a:visited, a:active {
border-bottom: 1px dotted #ccc;
}
my only problem is that i don't want the links with images to have this bottom border. i've tried doing a img { }
but this targets the image itself, setting its border to 0. but i want to target the anchor tag.
The question is, is there any way of achieving this without using classes? ie:
i've searched the web, but i haven't found any page dealing with this issue (which leads me to think that the only way is to use classes).
thanks in advance
edit
solved, thanks to device55
Source: http://www.livejournal.com/community/webdesign/817678.html