CSS CSS Flexbox Layout Flexbox Properties Wrapping Items and Distributing Space

Kyle Laresn
Kyle Laresn
6,506 Points

I'm not sure what is meant by a multi-line flex container, I thought useing the flex-direction: column; would do it.

is flex-direction: column; not the correct answer?

style.css
/* Complete the challenge by writing CSS below */
.row{
    display: flex; 
  flex-flow: 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
163,092 Points

Hint: The title of this challenge is "Wrapping Items and Distributing Space".

Stronger hint: The property associated with multiple lines is "flex-wrap".

I'll bet you can figure out the setting.

Kyle Laresn
Kyle Laresn
6,506 Points

Ahh got it. Thanks!