E-mail List Archives
Re: Speaking of "Skip to" links
From: Jukka K. Korpela
Date: Dec 15, 2004 9:55AM
- Next message: amsmith@checkfree.com: "Alisa Smith is in class for the remainder of today, back in the office 12/16/04"
- Previous message: Austin, Darrel: "Re: Speaking of "Skip to" links"
- Next message in Thread: None
- Previous message in Thread: Austin, Darrel: "Re: Speaking of "Skip to" links"
- View all messages in this Thread
On Wed, 15 Dec 2004, julian.rickards wrote:
> Jukka wrote:
>
> "When styling links, one should normally use selectors like :link and
> :visited, not the element name A alone."
>
> A small point perhaps but to save filespace of the CSS stylesheet, I combine
> common style declarations of links ( tags) using the a selector and then
> where :link, :visited, :active, and/or :hover differ, I declare those
> differences separately.
But that creates exactly the problem I was referring to: any styles you
then set for links will be applied to destination anchors
... as well. This is fine _if_ you don't define any
destination anchors that way but use id="..." attributes instead.
But for legacy documents, or documents that might get edited by others,
a { ... } is risky.
--
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
- Next message: amsmith@checkfree.com: "Alisa Smith is in class for the remainder of today, back in the office 12/16/04"
- Previous message: Austin, Darrel: "Re: Speaking of "Skip to" links"
- Next message in Thread: None
- Previous message in Thread: Austin, Darrel: "Re: Speaking of "Skip to" links"
- View all messages in this Thread