Dylan Wilbanks wrote:

> I thought that using the :not selector was the solution:
> a:not([href*="flickr"]):before {
>    content: " [";
>    color: #000;
>    text-decoration: none;
> }
> a:not([href*="flickr"]):after {
>        content: " " attr(href) "] ";
>    color: #000;
>    text-decoration: none;
> }
>
> But there are two obvious problems:
> 1. Anchor links are now getting generated brackets thrown around
> them
> 2. If he switches away from Flickr or links to an image on a
> non-Flickr, he has to add a new exception every time

I don't have a solution for the second problem, but wouldn't the first 
be solved by overriding the earlier styles?

a:([href*="flickr"]):before {
    content: "";
    color: #000;
    text-decoration: none;
}
a:([href*="flickr"]):after {
    content: " " attr(href) "";
    color: #000;
    text-decoration: none;
}

-- 
Els


______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to