I created a website that has different navigation menus. In 2 menus, I use the same HTML class element.
I have a .css file that styles that class element in 1 menu.
You can also do something like this:
Some code Some different code
And the CSS for the first .classname would be something like that:
.classname
.classname:not(.second) {}
For the second element it goes easily:
.classname.second {}