You can do declaration 1, declaration 2, etc... so...
Quote:
#menu-nav ul ul a{color:#fff;background:#000; ... }
...
#menu-nav-sec ul ul a { color:#fff; background:black; ...}
becomes
Code:
#menu-nav ul ul a, #menu-nav-sec ul ul a {color:#fff;background:#000; ... }
#menu-nav li:hover > a, #menu-nav ul ul :hover > a, #menu-nav-sec li:hover > a, #menu-nav-sec ul ul :hover > a {background:#591b3b; ... }
and so on
in fact, in the red and blue, you were doing it already
div.menu ul {...}
targets all ul's that are children of div's with class menu applied.
The first one (#menu-nav .menu-header ul) is an odd declaration to me... I don't usually do a lot of CSS so I have forgotten the specificity hierarchy... someone who uses it more frequently can probably elaborate more.
Nonetheless nothing will change, you simply have two different declarations. Every new declaration is marked by a comma. So you could do
Code:
#menu-nav .menu-header ul,div.menu ul, #apple, .banana, #horse ul {...}
Thanks. I didn't know that this is the purpose of commas.
I am now thinking aboud enhancing this css, make it simpler and smaller, leaving the same visible style.
I have no idea how and what, but somebody told me to use SCSS... not sure even if I can, I am on a shared hosting and I can't install anything in the server. Maybe there are some other ways to enhance it.. hmm...
SCSS? I think that whole SASS thing is pretty useless and it definitely doesn’t make your CSS simpler and more compact (compared to doing it yourself). In fact, you basically need to learn a new scripting language while it is converting the code into regular CSS anyway (and without you having real control over it, too). The only thing that could be a little useful is that it might save you some time writing CSS but I even doubt that, and with the right program you don’t even need that.
well what do you develop? I do back end coding, but that doesn't mean I can't do client side- it just means I don't like/prefer to do so. Coding is coding, and when it comes to coding HTML/CSS is some of the easiest. The hardest thing about CSS is understanding the inheritance and getting used to how it all interacts... CSS just takes a lot of practice
You can PM me; however, I am not free-lancing ATM. Feel free to PM for other Q's though if you'd like. I do know that in the web projects and market place section you can post Reqs for developers.