You are here: Re: Working with tabbed menus « HTML « IT news, forums, messages
Re: Working with tabbed menus

Posted by Andy Dingley on 08/22/07 15:48

On 21 Aug, 22:15, "ish...@gmail.com" <ish...@gmail.com> wrote:

> I want to have the same background color
> for the active tab and pages while the inactive pages will be a
> contrasting color. How do I get the tabs to recognize which page is
> active?

Plain and simple CSS. No client-side scripting, no server-side
scripting.

Simple way: put class="current" on the current HTML element(s) and use
simple CSS selectors to change what you need.

Slightly more complex way. The simple way needs the "nav bar" to be
changed for each different "current". That measn you can't embed it
via SSI. There's a CSS fix for that too.

http://groups.google.co.uk/group/alt.html/msg/53a3118c1d34aec8

 

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

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