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

HTML

Images 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>

Make sure you have the doctype declaration and load the css in your head

<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
    <link rel="stylesheet" type="text/css" href="flexbox.css">
</head>

<body>

then close the body after your last div