I'm not sure if I understand the question...
But it's actually easy to remove the borders from an image in an anchor tag
using css, not inline.

a img{
  border:none;
}

When that's done, you can do whatever you want with the link or with the
image.


Johan Douma
[email protected]

2009/1/16 Brett Patterson <[email protected]>

> Okay. That makes sense.
>
> --
> Brett P.
>
>
> On Thu, Jan 15, 2009 at 3:52 PM, David Dorward <[email protected]>wrote:
>
>> Brett Patterson wrote:
>> > So, my question is this. Why does the image tag have to have the border
>> > placed on it, instead of placing the border or text-decoration styles on
>> > the anchor tag?
>>
>> Consider the case:
>>
>> <a href="/"> <img src="/foo" alt=""> Ipsum Ipsum </a>
>>
>> A border around the entire thing would give a very different effect to a
>> border around just the image.
>>
>> There's no selector in CSS to select an element based on its descendants
>> either.
>>
>> --
>> David Dorward                               <http://dorward.me.uk/>
>>
>>
>> *******************************************************************
>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
>> Help: [email protected]
>> *******************************************************************
>>
>>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [email protected]
> *******************************************************************


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to