From: shapper on
Hello,

I am styling some anchors as follows:

a {color: #2E6194;}

a:link {color: #2E6194;}

a:visited {color: #285580;}

a:hover, a:active, a:focus {text-decoration: none;}

Is there a specific order to style the anchors?
And should I use the common a?

What is the correct way to style anchor tags?

Thanks,
Miguel
From: Jukka K. Korpela on
shapper wrote:

> I am styling some anchors as follows:
>
> a {color: #2E6194;}

Setting color without setting background is bad. And you don't style tags.
You style elements.

> Is there a specific order to style the anchors?

Yes.

> And should I use the common a?

No.

> What is the correct way to style anchor tags?

Check out
http://www.cs.tut.fi/~jkorpela/www/links.html

It may look difficult, but correct styling of links (which is what you
really mean) is much more complex than people use to think.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

From: shapper on
On Jan 29, 5:38 pm, "Jukka K. Korpela" <jkorp...(a)cs.tut.fi> wrote:
> shapper wrote:
> > I am styling some anchors as follows:
>
> > a {color: #2E6194;}
>
> Setting color without setting background is bad. And you don't style tags..
> You style elements.
>
> > Is there a specific order to style the anchors?
>
> Yes.
>
> > And should I use the common a?
>
> No.
>
> > What is the correct way to style anchor tags?
>
> Check outhttp://www.cs.tut.fi/~jkorpela/www/links.html
>
> It may look difficult, but correct styling of links (which is what you
> really mean) is much more complex than people use to think.
>
> --
> Yucca,http://www.cs.tut.fi/~jkorpela/

Thank you Yucca.
The article was really useful.

Thanks,
Miguel
From: Harlan Messinger on
shapper wrote:
> Hello,
>
> I am styling some anchors as follows:
>
> a {color: #2E6194;}
>
> a:link {color: #2E6194;}
>
> a:visited {color: #285580;}
>
> a:hover, a:active, a:focus {text-decoration: none;}
>
> Is there a specific order to style the anchors?

Las Vegas Free Hotel Accommodations (link, visited, focus, hover, active).

> And should I use the common a?

You mean, should you write a:hover as opposed to just :hover? Yes.
From: Andy Dingley on
On 30 Jan, 13:45, Harlan Messinger
<hm.usenetremovert...(a)gavelcade.com> wrote:

> Las Vegas Free Hotel Accommodations (link, visited, focus, hover, active).

We should have a CSI-based mnemonic for that. Is there a pseudo-
selector with G-Grissom or M-Morpheus?