On 27/08/2009, at 9:02 AM, tommy_til...@arwb.uscourts.gov 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.

If you are willing to use progressive enhancement you can do this with  
CSS via attribute selectors (not understood by IE6). e.g.

a[href^='http'] { /* your rules for external links here */ }

What this is saying is apply the rule if the href attribute starts  
with 'http'.

This will mean that the site is enhanced for real browsers and no harm  
is done to our stupid old nemesis. If it *must* be the same in IE6  
then you need to use a server side solution or javascript to add a  
class name to external links.

Cheers, Tim
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
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