Skip to content

Latest commit

 

History

History
 
 

17-nav-menu

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Header and Navigation Menu

The navigation menu in the header of a website often changes depending on the screen size. In this exercise, you will use media queries and flexbox together to make the header look great on any device.

Follow the steps below to complete this exercise. Do not modify the index.html file.

  1. The navigation menu items are "Men's Fashion", "Women's Fashion" and "On Sale". Right now they appear stacked on top of each other. Write a media query and use flexbox rules to put the items side by side on screens wider than 480px.
  2. Write a media query and use flexbox so that the logo, navigation menu and checkout button appear side by side on screens wider than 700px.
  3. Write a media query and use flexbox so that the checkout button appears on the right and the navigation menu appears in the center on screens wider than 992px.

When you complete this exercise, you should be able to change the screen size and see the header change like the image below.

Screenshot of the solution.