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 trialLearning coding
Front End Web Development Techdegree Student 9,937 PointsHow do I get three columns next to each other?
It looks so easy in the video's, but doing it yourself is a different thing. Can someone help me please?
My code: https://w.trhou.se/z4nmh0ygdu
4 Answers
Lee Torson
8,694 PointsThe working layout should look like this :)
Lee Torson
8,694 PointsYou've placed item 2 and 3 outside the container, so you'd need to move them within that as the container is 100% width and causing them not to be inline. You may need to check you don't have ending div tags before the content also. Then with the CSS, just add the following to the item class:
.item {
background: #3db5da;
border-radius: 3px;
color: #fff;
display: block;
float: left;
margin: 1%;
padding: 1em;
width: 31.333333333%
}
Learning coding
Front End Web Development Techdegree Student 9,937 PointsMuchas Gracias, solving these (maybe simple) things are like victory. The column's weren't equal to each other yet, but the first thing that came into mind was "flex-start". :) Yes!
Learning coding
Front End Web Development Techdegree Student 9,937 PointsI have done those things, but think i did something wrong. Because the columns look worse now!
Lee Torson
8,694 PointsYeah you've removed the end </div> tags on each item