CSS CSS Flexbox Layout Understanding Flexbox Flex Container Challenge

The first step to using flexbox is creating a flex container. Target .main-nav and make it a flex container.

this was the question asked ?

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Flexbox Layout</title>
    <link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <header>
      <div class="conatiner">
      <ul class="main-nav">
        <li class="name"><a href="#">My Site</a></li>
        <li><a href="#">About</a></li>
        <li><a href="#">Work</a></li>
        <li><a href="#">Contact</a></li>
      </ul>
      </div>
    </header>
  </body>
</html>
style.css
/* Complete the challenge by writing CSS below */

3 Answers

Dale Severude
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,279 Points

In the css file select the main-nav and then set display to flex.

.main-nav {
  display: flex;
}

Thanks Mr. Dale Severude

Steven Parker
Steven Parker
177,843 Points

Assuming you want a hint, and not an outright spoiler:

:point_right: The CSS property that identifies a flex container is display: flex;

.main-nav { display: flex; }