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 trialRobert Davey
503 PointsCan't get left!!?!
I've gotten my 2 columns to break into three at the breakpoint, but cannot float that 4th item to the left. Seem to have copied the code precisely and cannot ferret out any trouble with the index code, which should just need gallery id to work.
Below, are snapshots, followed by a cut and paste of the code. Apologies for surreal placeholders and thanks in advance for your help!
@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(3n + 1) {
clear: left;
}
}
@media screen and (min-width: 660px) {
}
</header>
<div id="wrapper">
<section>
<ul id="gallery">
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p>Fixin to tuck in</p>
</a>
</li>
<li>
<a href="img/numbers-02.jpg">
<img src="img/numbers-02.jpg" alt="">
<p>Playing with blending modes in photoshop</p>
</a>
</li>
<li>
<a href="img/numbers-06.jpg">
<img src="img/numbers-06.jpg" alt="">
<p>it's right in front of you</p>
</a>
</li>
<li>
<a href="img/numbers-09.jpg">
1 Answer
Jon Brady
10,868 Pointswhenever iv had this problem its always something to do with margin or padding...(sometimes only 1 px out).
but ya know ....lookin at it ... you have @media screen and (min-width: 480px) ... and then...@media screen and (min-width: 660px) .... just dosent look right ... sorry i know this does not help... but id like to know the answer too.