Hi John,
I'm sorry I just don't get it. It must be a combination of IQ < 50 and css = brain meltdown.
I know it's a lot to ask but if you don't ask.... would it be possible with an "for dummies" explanation maybe using the styles in my style sheet?
http://www.mouseriders.dk/ http://www.mouseriders.dk/mouseriders_default.css
Sorry to be such a pain.
Kim
Big John wrote:
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
=====
****************************************************** 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 ******************************************************
