The Navigation Bar

Time for the last small project! This time, you'll lay out a page with what you've learned in the lessons Display and Position and Flexbox. As before, the instructions say what the page should look like, and how you get there is up to you.

The project. Happy Paws looks after cats in their own homes while their owners are away, and it needs a page with its prices. The HTML and the look of the parts of the page (the colors, the font, the cards and the buttons) are ready in style.css, but everything is one below the other. Over three exercises, you'll lay out the navigation bar, put the price cards side by side and make the most popular plan stand out. Each exercise continues where the previous one ended.

At the end, the page will look like this (smaller):

Happy PawsHomePlansContact
Cat sitting while you're away
We look after your cat in its own home, where it feels best. Choose the plan that suits you.
Visit
€15 / day
One visit a day: fresh food and water and a clean litter box.
Choose
Most popular
Daily care
€25 / day
Two visits a day with time for play and cuddles, and a photo of your cat every evening.
Choose
Full care
€40 / day
Three visits a day, time for play, plants watered, mail collected and a video call whenever you miss your cat.
Choose
Call us at +420 123 456 789 or write to hello@happypaws.example.

The task. The navigation bar at the top has the logo at its left end and the links at its right end, all of them in the middle of the bar's height. There are 24px between the links.

A tip: the links are in a div of their own, with the class links. An element can be a flex item and a flex container at the same time.

Instructions

The logo is at the left end of the navigation bar and the links at its right end, all of them in the middle of the bar's height.

There are 24px between the links.

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

1/3