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

Posted by Matt White on 08/23/07 14:39

On Aug 22, 9:48 am, Andy Dingley <ding...@codesmiths.com> wrote:
> 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

This might be less hard-coded, but it's still hard-coded. I believe he
is trying to avoid any hard-coding and have the tab coloring
determined at load-time so that new pages can easily be added without
having to worry about the tab coloring each time.

 

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

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