Poulsgaard Posted April 1, 2016 Share Posted April 1, 2016 Hi Forum I've been trying to add some colors to my categories on my top menu. Looking fine: But as you can see, the subcategories are also colored, which was not intended. Any suggestions on how to style the top categories, not affecting the subcategories ? My css file for reference: superfish-modified.css TIA Pete Link to comment Share on other sites More sharing options...
NemoPS Posted April 2, 2016 Share Posted April 2, 2016 Could you share the site's url?You might want to use a ">" operator instead of, say ul li, so ul > li Link to comment Share on other sites More sharing options...
Poulsgaard Posted April 4, 2016 Author Share Posted April 4, 2016 Could you share the site's url? You might want to use a ">" operator instead of, say ul li, so ul > li I've uploaded the site to www.camepo(dot)com Where exactly should I put the > ? - I feel like have tried everything..... Pete Link to comment Share on other sites More sharing options...
NemoPS Posted April 4, 2016 Share Posted April 4, 2016 Like this .sf-menu > li > ul > li > a Link to comment Share on other sites More sharing options...
Mila_omni Posted April 5, 2016 Share Posted April 5, 2016 I would give a class attribute to distinguish the two li's in the menu, and then edit my CSS for the specific attribute only. Link to comment Share on other sites More sharing options...
Poulsgaard Posted April 5, 2016 Author Share Posted April 5, 2016 Like this .sf-menu > li > ul > li > a Worked like a charm..... Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now