change css for nav text to adapt to layout changes