W3C home > Mailing lists > Public > www-style@w3.org > March 2007

Re: (Visual) anchor navigation aids

From: Yahia <cyahia@gmail.com>
Date: Tue, 20 Mar 2007 14:19:15 -0000
To: www-style@w3.org
Message-ID: <op.tphred1l4lprl1@poste0>

Daniel Beardsmore wrote:
> Maybe different link colours would be better?
> Blue for internal, green for external, orange
> for "same page"?

I think that this would make a lot of colors in a webpage, probably  
breaking the color scheme, and unfocusing the reader from the content.
Anyhow, I believe you can achieve what you want with the following CSS3  
selectors [1]

a[href^="#"]
{ /* styles for in-page links */ }

a[href^="http://"]
{ /* styles for external links */ }

a[href$=".gif"], a[href$=".png"], a[href$=".jpg"], a[href$=".tiff"]
{ /* styles for links to images */ }

[1] http://www.w3.org/TR/css3-selectors/

-- 
Yahia C.
<http://yahia.ma/antiblog/>
Received on Tuesday, 20 March 2007 21:25:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:50 GMT