The border is on the <a> tag, not the <img> tag. What i want is all text links to have the border but if the link has an image in it the <a> tag is not to have a border.
-----Original Message----- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brontojoris Sent: Thursday, 4 December 2008 9:19 AM To: cfaussie Subject: [cfaussie] Re: CSS question Steve, This should work: a:link, a:visited { color:blue; text-decoration: none; border-bottom: 1px dotted blue; } a:hover, a:active { color:red; text-decoration: none; border-bottom: 1px dotted red; } a img, a:link img, a:visited img, a:hover img, a:active img { text-decoration:none; border-bottom:none; } On Nov 30, 7:55 pm, "Steve Onnis" <[EMAIL PROTECTED]> wrote: > Is it possible to apply a hover action to an a tag depending on whats inside > it? > > Example, i am applying a dotted underline to a tags but if the a tag has an > image inside it i dont want to apply the underline to it. > > Possible? > > Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---