...

/

Flex Shorthand Notation Solution

Flex Shorthand Notation Solution

This lesson is the solution to the flex shorthand notation exercise in the previous lesson.

Step 1: Removing the hamburger menu

First, let’s remove the hamburger menu from the markup, and the corresponding styles in the CSS. This includes removing the styles responsible for hiding the default grey menu.

Remove this line from the HTML code:

<div class="hamburger-box"></div>

Also remove the following CSS rules:

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    margin: 20px;
    height: 30px;
}

.logo {
    height: 30px;
    flex-basis: 485px;
    flex-grow: 1;
    background-color:
...