CSS CSS Flexbox Layout Flexbox Properties Wrapping Items and Distributing Space

Yi Ming
Yi Ming
4,679 Points

Can't pass the task two

I can't pass the task two: Giving .row the flexbox property and value that will make it a multi-line flex container. What I did was adding "flex-direction: column;", then I click the preview. Nothing has changed. Could somebody tell me why?

style.css
/* Complete the challenge by writing CSS below */
.row {
 display: flex;
  flex-direction: column;
}
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>
  <div class="row">
    <div class="item">Item 1</div>
    <div class="item">Item 2</div>
    <div class="item">Item 3</div>
    <div class="item">Item 4</div>
    <div class="item">Item 5</div>
    <div class="item">Item 6</div>
  </div>
</body>
</html>

1 Answer

This task's instructions are a little confusing. Direction isn't the property you are looking for. You want the rows to wrap.

.row {
  display: flex;
  flex-wrap: wrap;
}