Reply to Re: Anchor colors

Your name:

Reply:


Posted by Michael Fesser on 08/08/07 15:45

..oO(tshad)

>"John Hosking" <John@DELETE.Hosking.name.INVALID> wrote
>
>> BTW, if you have identical rules for :link, :hover, and :active, you can
>> probably just specify a:link, a:visited and leave out the others, as they
>> are affected by the a:link selector.
>
>Are you saying that a:hover and a:active is affected by a:link or a:hover is
>affected by a:link and a:active is affected by visited? Just wanted to make
>sure.

One of the pseudo-classes :link and :visited always applies. The other
three pseudo-classes (:hover, :active, :focus) might apply additionally
and even at the same time.

>Also, since we are using the pseudo selectors, is
>
>a{
>}
>
>not really useful? I can't figure out why I would use the "a" tag by
>itself.

For example to declare some general properties for all links, regardless
of their current state.

>So I assume that the following:
>[...]
>
>Can be changed to:
>
>.bodybold a:active, .bodybold a:visited, .bodybold a:hover, .bodybold
>a:active
>[...]

..bodybold a {
font-weight: bold;
text-decoration: none;
color: #666
}

You don't have to declare the font family, size etc. over and over
again.

>The same with this:
>[...]
>
>can be changed to:
>
>a.bodybold:link, a.bodybold:visited, a.bodybold:hover, a.bodybold:active
>[...]

a.bodybold {
font-weight: bold;
text-decoration: none;
color: #666
}

Same thing.

Micha

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация