On 27/08/2009, at 9:49 AM, Chris Williams wrote: > Except that your rule doesn't get https:// > >> From: Tim Snadden <li...@snadden.com> >> Subject: Re: [css-d] external link indicators >> >> 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!
Fair enough. Here is a solution. a[href^='https://'], a[href^='http://'] { /* your rules */ } This avoids the filename/directory beginning with http and gets external links to ssl sites. Next it will be ftp links or trying to avoid internal links that include the domain! I'll leave that as an exercise for the original poster ;-) 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/