You are here: Re: A: active link « HTML « IT news, forums, messages
Re: A: active link

Posted by Jim Moe on 06/23/06 06:44

Kevin Scholl wrote:
>
>>> EX: Global tool page included a link to the news page. It is colored black
>>> like all the othe links listed in the global tool page. Once you have
>>> navigated to the news page, the link for that page has now changed to red in
>>> the global tool bar. I thought that was what A: active link is used for but
>>> I think I am wrong.
>>>
>> The closest you can get with CSS is a:visited, but it is not unique. If
>> you set it to red, all the other visited links are red as well.
>
> It actually can be done quite easily with only CSS. There are several
> tutorials for it online; here's a pretty straight forward one:
>
> http://www.hicksdesign.co.uk/journal/highlighting-current-page-with-css
>
Well, I was not considering having to do it all manually.
The method described above does not scale well; it needs a unique ID for
every page and menu item, a lot of cruft builds up in the CSS files. Using
SSIs does not scale easily either since a unique file is needed for each
page's menu.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

 

Navigation:

[Reply to this 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

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