CSS CSS Flexbox Layout Flexbox Properties Wrapping Items and Distributing Space

Julian Cubillos
Julian Cubillos
2,060 Points

Next, give .row the flexbox property and value that will make it a multi-line flex container. CSS flexbox layout

Next, give .row the flexbox property and value that will make it a multi-line flex container. CSS flexbox layout challenge 2

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

/* Complete the challenge by writing CSS below */

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

This A Complete Guide to Flexbox on "CSS Tricks" : https://css-tricks.com/snippets/css/a-guide-to-flexbox/. It explains every thing about Flexbox. It explains Flexbox Properties with images so you can have a better idea how they work.