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 trialRicard Taujenis
4,383 PointsFinally, let's distribute the available space inside .row. Give .row the flexbox property and value that will place the
not sure what were the properties to set functions on edges
.row{
display: flex; flex-wrap: wrap;
justify-content: space-between;
}
.item1 {
order: left;
}
.item6 {
order: right;
}
<!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>
2 Answers
Jennifer Nordell
Treehouse TeacherThe class for item1 and item6 is unnecessary for this challenge. It only wants you to set the properties for the "row" class. Take a look here:
.row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
jaredwillis
7,735 Pointspart 3 is tricky. don't forget about using " {flex-direction: } " so that the entire row spans the edge of the div (including items 1 & 6)
Roy Yap
17,968 PointsRoy Yap
17,968 Pointsyour awesome jennifer
Gonzalo Torres del Fierro
Courses Plus Student 16,751 PointsGonzalo Torres del Fierro
Courses Plus Student 16,751 Pointsyour answer is super correct, but for me the request 3/3, it is a little tricky, but at the same time I don not know how could be a better way to make that question...