Reply to Re: Anchor colors

Your name:

Reply:


Posted by John Hosking on 08/08/07 02:01

tshad wrote:
> Unfortunately, I don't have a public site to use - just an intranet.

Please don't top-post.

Please get access to a public site and post your code there and a URL
here. Nobody wants to see all this code out of context. There are free
servers where you can put up a page for free, if your ISP doesn't
provide one.

>
> In the following, can I put the selectors together (the following works - I
> just want to see if I can combine them)?

Yes, did you not read my post up-thread? You responded to it.
In message <46b22034$1_6@news.bluewin.ch> I said

> Also BTW: since these three rule sets are identical, you can combine them to
>
> a.bodybold:link, a.bodybold:visited, a.bodybold:active

Note the commas delimiting three selectors.

Back to your last post:
>
> I tried
>
> .nav-menu-side li a:link a:visited a:hover a:active

The delimiter is a comma. Between each comma you need the exact (full)
selector you want added to the list for the shared ruleset. So:

..nav-menu-side li a:link,
..nav-menu-side li a:visited,
..nav-menu-side li a:hover,
..nav-menu-side li a:active { color: #666666; }

> And
>
> .nav-menu-side li a:link a:visited a:hover a:active

How is this second attempt different from the first? I don't see it.

> neither of these worked.

Two (identical) stabs in the dark. Get a reference and use it.

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.

--
John
Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html

[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

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