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 trialYan Liu
10,552 Pointsnot in three colum
@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%
}
}
@media screen and (min-width: 660px) {
}
John Hartney
2,893 PointsHello Yan,
it might help if you to post your html file as well as you css when asking for help
Looks like you left out the the semicolon after the width value Try this
Replace this...
/**********************************
PAGE; PORTFOLIO
***********************************/
#gallery li {
width: 28.3333%
}
}
With this...
/**********************************
PAGE; PORTFOLIO
***********************************/
#gallery li {
width: 28.3333%;
}
}
Yan Liu
10,552 PointsThanks guys. Seems after I put ";"in, it's still not working.
Here is the HTML
<div id="wrapper">
<section>
<ul id="gallery">
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p>Experimentation with color and texture.</p>
</a>
</li>
<li>
<a href="img/numbers-02.jpg">
<img src="img/numbers-02.jpg" alt="">
<p>222222222222222</p>
</a>
</li>
<li>
<a href="img/numbers-06.jpg">
<img src="img/numbers-06.jpg" alt="">
<p>66666666666</p>
</a>
</li>
<li>
<a href="img/numbers-09.jpg">
<img src="img/numbers-09.jpg" alt="">
<p>999999999999</p>
</a>
</li>
<li>
<a href="img/numbers-12.jpg">
<img src="img/numbers-12.jpg" alt="">
<p>12121212121212</p>
</a>
</li>
</ul>
</section>
<footer>
<a href="http://twitter.com"><img src="img/twitter.png" alt="Twitter Logo" class="social-icon"></a>
<a href="http://www.facebook.com"><img src="img/facebook.png" alt="Facebook Logo" class="social-icon"></a>
<p>© 2015 Ricky Liu.</p>
</footer>
</div>
Robert Richey
Courses Plus Student 16,352 PointsRobert Richey
Courses Plus Student 16,352 PointsHi Yan,
I added markdown to help make the code more readable. If you're curious about how to add markdown like this on your own, checkout this thread on posting code to the forum . Also, there is a link at the bottom called Markdown Cheatsheet that gives a brief overview of how to add markdown to your posts.
Cheers!