CSS CSS Flexbox Layout Flexbox Properties Wrapping Items and Distributing Space

its not accepting "flex-direction : column;" for task 2

The task is to create a multi-line layout. I am using flex-direction : column; is not being accepted. Is this a bug ?

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

Steven Parker
Steven Parker
186,662 Points

You might be using the wrong property.

The challenge has asked you to "...make it a multi-line flex container".

According to the video review for Wrapping Flex Items, "With the flex-wrap property, you can control whether the flex container is a single-line or multi-line layout."