Re: (Visual) anchor navigation aids

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 UTC