Kim Kruse wrote:

> I'm almost ready to add content to this page http://mouseriders.dk/ but 
> I still have one problem I just can't figure out. Is it possible to 
> create a style(s) that will show one of the tabs white (you are here 
> kind of thing)... like I do in the sidenav ?

No problem. Just give each tab a unique class, and each page
that is a target of a tab a unique body class as well. Then it's 
possible to write descendant selectors that only apply to 
a tab when it's on the page to which it points.

For instance, say a page has a body class of "home" and the 
tab pointing to the home page has a class of "hometab", then 
write this:

.home .hometab {styles for the "current" page tab;}

Now those special rules can override the normal styles on
the tab set. This method allows a series of selectors to be
grouped together:

.home .hometab, 
.about .abouttab, 
.sitemap .sitemaptab
{styles for the "current" page tab;}

Thus the tabs normally obey the primary tab styles, and
only if a tab class properly matches up with a body class,
will the special styles in this block apply to it.

Big John



=====
-- 
Perennial student + Impractical joker + CSS junkie = Big John
<http://www.positioniseverything.net>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
******************************************************
The discussion list for  http://webstandardsgroup.org/

Proud presenters of Web Essentials 04 http://we04.com/
 Web standards, accessibility, inspiration, knowledge
To be held in Sydney, September 30 and October 1, 2004

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to