Hi I will just re-write this CSS to explain you inheritance and how much you can save on extra CSS if you use it wisely.
I am not saying above code is wrong but you should always try adopt inheritance, so that you have more control over the styles from one place.
<div class="navcontainer">...