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 trialkalle oman
1,178 Points"Build a Three Column Layout" Won't work
Hello my three column don't work go next to each other
My code: https://w.trhou.se/twfwjj2c0w
1 Answer
Riho Rannamäe
3,784 PointsHave you watched the video to the end and followed along? You are missing an important code from your responsive.css file, that is added in the end of the video, where two column layout becomes a three column layout.
@media screen and (min-width: 480px) {
/**********************************
TWO COLUMN LAYOUT
***********************************/
#primary {
width: 50%;
float: left;
}
#secondary {
width: 40%;
float: right;
}
/**********************************
PAGE: PORTFOLIO
***********************************/
#gallery li {
width: 28.3333%;
}
#gallery li:nth-child(4n) {
clear: left;
}
}
@media screen and (min-width: 660px) {
}
I hope it helped! :)