The float doesn't fix and therefore the navigation bar items get pushed down. Possible Solution no. 1; A min-width. Possible Solution no. 2; Explore a media query that makes relative sizes of the buttons at a certain width. Both are not optimal.