CSS CSS Flexbox Layout Flexbox Properties Wrapping Items and Distributing Space

Tarun Chakrabarti
PRO
Tarun Chakrabarti
Pro Student 9,058 Points

second step on this challenge I did put "flex-direction: column;" but it saying i am wrong.

.row { display: flex; flex-direction: column; }

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

Benjamin Larson
Benjamin Larson
34,043 Points

Hi Tarun,

They are looking for the flex-wrap property. Check out this link to the css-tricks website to learn all the flexbox properties or use as a quick reference: https://css-tricks.com/snippets/css/a-guide-to-flexbox/

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
Tarun Chakrabarti
Tarun Chakrabarti
Pro Student 9,058 Points

Thanks Benjamin, I solved the problem already.