Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: Els <els.aNOSPAM@xxxxxxxxxx>
- Date: Fri, 5 Aug 2005 22:56:17 +0200
madsgormlarsen@xxxxxxxxx wrote:
> Hi Els
>
> I still dont think you catch what I getting at, I think maybe the best
> thing is this, take a look at www.apple.com , that is what I am looking
> for. Click the main tabs and see how main tab and sub tabs change
> colour.
Ah, okay - so it is related to which page you're on.
Hence your suggestion for giving the body a class.
So.. what is it that isn't working?
If page 1 has <body class="page1"> and page 3 has <body
class="page2">, and you've given the current menu class="current",
it's as simple as adding the following lines to your style***:
body.page1 .current{background:red;}
body.page2 .current{background:blue;}
If that doesn't work, your problem may be with the way you have
constructed your menu. What does your html code look like?
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Split Enz - Message To My Girl
.
- Follow-Ups:
- References:
- CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: madsgormlarsen
- Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: madsgormlarsen
- Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: madsgormlarsen
- Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: Els
- Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: madsgormlarsen
- Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: Els
- Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: madsgormlarsen
- Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: Els
- Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- From: madsgormlarsen
- CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- Prev by Date: Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- Next by Date: Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- Previous by thread: Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- Next by thread: Re: CSS menu - changing colors of tab - do I need a css file for each color? a better way?
- Index(es):