Page 1 of 1

Horizontal Css Menu, Different bg on childs

Posted: Wed Jul 06, 2011 12:37 pm
by Bekker
Hey guys, currently working on styling the Horizontal css menu for my site...
But i got a problem...

I want a background image on every parrent (only top level).
Thats no problem, put it under "ul#primary-nav li a"...
But now all childs also use this background... Any idea on what to do?
I tried:

Code: Select all

ul.unli li a {
	background:  none;
}

Re: Horizontal Css Menu, Different bg on childs

Posted: Sun Jul 10, 2011 2:02 pm
by Bekker
Anyone?

you can see the problem here:
http://forevertan.dk/v2/

The child dropdown from Home, uses the backgound from the parrent...

And i use the standard horizontal css menu that came with the cms...

Re: Horizontal Css Menu, Different bg on childs

Posted: Sat Oct 01, 2011 9:36 pm
by Dr.CSS
When you call it in the top level it "cascades" down to the next level unless you specifically tell it not to...

ul#primary-nav li a {background: url......}

ul#primary-nav li li a {background: none}

You called it one way for top level and a different way fro second level...