On 27/08/2009, at 9:02 AM, [email protected] wrote:

> Can you or has anyone ever used CSS to indicate that a link would  
> take you
> outside the current web site? Trying to come up with some way to let  
> the
> user know they are exiting my site. I open the link in a blank  
> target, but
> was wondering if there is a better way to communicate this. Really  
> do not
> want to say (external) by the link itself. Thanks in advance for your
> ideas.

Further to my original reply...

a[href^='http://'] { /* your rules */  }

This is more robust than...

a[href^='http'] {  /* your rules */  }

The reason is that it will still work on the off-chance that you have  
a file named http.html or something like that!

Cheers, Tim
______________________________________________________________________
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