Steve, why not have ALL images styled with no text-decoration and no
border?    If the image isn't a link nothing will happen. If it is a
link you'll get the effect you want.

img,
a img,
a:link img,
a:visited img,
a:hover img,
a:active img {
text-decoration: none; border-bottom: none;
}

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month

On Thu, Dec 4, 2008 at 10:11 AM, Steve Onnis <[EMAIL PROTECTED]> wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to