CSS CSS Flexbox Layout Understanding Flexbox Flex Container Challenge

where do input line?

where do I {write display: flex;} so close I can smell it

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>
      <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>
    </header>
  </body>
</html>
style.css
/* Complete the challenge by writing CSS below */

1 Answer

Steven Parker
Steven Parker
177,579 Points

:warning: SPOILER ALERT

In your CSS file:

style.css
/* Complete the challenge by writing CSS below */
.main-nav { display: flex; }

If you're not already familar with CSS in general, you might enjoy taking the CSS Basics course before this one.