Styling grandchildren links (third level) any ideas

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
sarah_h
Forum Members
Forum Members
Posts: 189
Joined: Tue Apr 25, 2006 8:30 am

Styling grandchildren links (third level) any ideas

Post by sarah_h »

Hi

I'm using the css menu template in the MM. I've split this menu up into a top menu and a side menu. The topmenu displays content for 1 level only and the sidebar menu displays 2nd level and third level links. Now this is brilliant and blew my mind when I figured how to do it (hats off to you dev guys!).

Anyway I've styled the top and side current (active) links great by using the .menuactive class. BUT I need to style third level links like this:

link1
link2 > link2a (<- I need to style this) Bear in mind that this is a third level link as this is attached to the top menu.

But the 2nd level and greater use the .menuactive class an so there's no separat class to attach a style to. I think this is a MM template job and I must admit at being a little confused by the code in there!

Is anyone able to offer any help?

Sarah
GraemeS
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 06, 2008 6:09 pm

Re: Styling grandchildren links (third level) any ideas

Post by GraemeS »

it is in the menu css file it will be the li li menu one will check  up on this for you, in theory you can style every level of the children
sarah_h
Forum Members
Forum Members
Posts: 189
Joined: Tue Apr 25, 2006 8:30 am

Re: Styling grandchildren links (third level) any ideas

Post by sarah_h »

You mean like UL LI LI UL LI? Looking at the code this looks like the third level. So something like this:

#navlist ul#sidelist li li ul li a {
....
}

Is that what you mean?

Sarah
GraemeS
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 06, 2008 6:09 pm

Re: Styling grandchildren links (third level) any ideas

Post by GraemeS »

yeah just looking into it all now

it has two selected as fourth level which confuses a bit
sarah_h
Forum Members
Forum Members
Posts: 189
Joined: Tue Apr 25, 2006 8:30 am

Re: Styling grandchildren links (third level) any ideas

Post by sarah_h »

Well I was just mucking about with this and found that when I used this:

#sidebar #menuwrapper ul#primary-nav li ul li a {
font-size:30px;
}

the link did indeed grow in size so that would prove that I was targetting the right level. But when I added

#sidebar #menuwrapper ul#primary-nav li ul li a {
font-size:30px;
color:#333;
}

it didn't affect the colour!! I'm confused  ???

Any ideas why that would be?

Sarah
GraemeS
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 06, 2008 6:09 pm

Re: Styling grandchildren links (third level) any ideas

Post by GraemeS »

http://www.hallowhouse.com/CMSMS/cmsms- ... planet.php

something working a bit like this?

i just playing now going to do text in a second hover over redplanet for 3rd level
sarah_h
Forum Members
Forum Members
Posts: 189
Joined: Tue Apr 25, 2006 8:30 am

Re: Styling grandchildren links (third level) any ideas

Post by sarah_h »

Lovely site!! love those colours.

Let me know when you get those 3rd level links working. So are the top links and sidebar links the same menu but split level?
GraemeS
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 06, 2008 6:09 pm

Re: Styling grandchildren links (third level) any ideas

Post by GraemeS »

on my site they is 2 levels above that that not showing so it just starts from level 3  but would work same for you i believe going to change text,

that site just a ported os template i doing a few for the community here
GraemeS
Forum Members
Forum Members
Posts: 36
Joined: Sun Jan 06, 2008 6:09 pm

Re: Styling grandchildren links (third level) any ideas

Post by GraemeS »

also if you look all the levels text colours are different shades of blue so think i got what you were looking for

have you got link to your site so i casn see how you trying to implement this because hae time on hands may be able to sort for you
sarah_h
Forum Members
Forum Members
Posts: 189
Joined: Tue Apr 25, 2006 8:30 am

Re: Styling grandchildren links (third level) any ideas

Post by sarah_h »

Well that's very kind of you! I'm working locally so I don't have anything on line at the mo' but I could upload to some space in the morning so you can see.

I'll contact you when it's on-line

Sarah
Post Reply

Return to “CMSMS Core”