Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNahom Micheal
3,364 Pointsmulti-line flex container
how to create multi-line flex container? how to give .row the flexbox property a value that will make it a multi-line flex container?
/* Complete the challenge by writing CSS below */
.row{
display:flex;
flex-flow:column;
}
<!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>
3 Answers
Michael Watson
13,204 PointsWouldn't a multi-line flex container use "column"? I thought this was a bug. "Wrap" is only multi-line if the viewing size changes, so on it's own it's a single line.
Benjamin Hedgepeth
5,672 PointsFor that challenge it will not accept the flex-flow property. Only use
.row {
display: flex;
flex-wrap: wrap;
}
Nevertheless, that shorthand property is acceptable in application.
Albertina V Chipangura
6,665 Pointsand remember the value wrap breaks the flex items into multiple lines