Navigation menu undo

Good evening. Is there a way to undo “inheriting” in the navigation? I want to change the color of the nav bar for a few pages. But it’s affecting the rest of the pages for obvious reasons. Thanks in advance.

If the nav is a repeating element with the same class, you would need a combo class for the nav on the pages you want to change. And you would have to change those individually each time you want a change.

Do all the base css on the main nav. For the one you want to change add the combo class last.