You can also do it with another method. Instead of Setting height you can set the line-height & position to fixed of the navigation bar