Demo of CSS Quantity selector

Demonstration of querying and setting responsive styles to navigation with exactly 4 items and 5 or more items . The font-size is smaller when there are more items in the navigation. The grey border simulates the website shown in narrow width screen. Original idea from A List Apart—Quantity Queries for CSS .

Nav with 2 items. (normal)

Nav with 3 items (normal)

Nav with 4 items (90%)

Nav with 5 items (70%)

Nav with many items (70%)

Nav with many items (70%)