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 trial
Jimel Atkins
2,093 PointsImages wont display in 3's using flexbox
I am not able to get the images to display in a row of 3 using flex box. I would like to use the snap shot of the code i used, so someone can tell me what im doing wrong.
in my flexbox.css i wrote:
.container { display:inline-flex; justify-content:space-between;
}
in my portfolio.html i wrote
<div class="container">
<div class="item-1 item">
<a href="img/bed.jpg">
<img src="img/bed.jpg" alt="">
</a>
</div>
<div class="item-2 item">
<a href="img/taste.jpg">
<img src="img/taste.jpg" alt="">
</a>
</div>
<div class="item-3 item">
<a href="img/white.jpg">
<img src="img/white.jpg" alt="">
</a>
</div>
</div>
Ryan Hunt
16,091 PointsRyan Hunt
16,091 PointsMake sure you have the doctype declaration and load the css in your head
then close the body after your last div