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 trialChezki Indursky
3,500 PointsCan't design the images in the portfolio
What's Wrong With My Code? http://web-suagol06dn.treehouse-app.com/
gallery {
margin:0; padding:0; list-style:none; }
gallery li {
float:left; width:45%; margin: 2.5%; background-color:#f5f5f5; color:#bdc3c7; }
2 Answers
Cosmin Cioaclă
21,339 PointsYou have the gallery id declared on the unordered list inside the nav. It should be targetting the list inside the section tag.
Chase Lester
10,972 PointsIts been a while since I saw this code but is the gallery a class or a id? if so it should be .gallery{rules}, if its an id it should be #gallery{code}, same on the second one. #gallery li{}, or .gallery li{}
UPDATE: Looked in the console and it is an id. So you will need "#" before your gallery #gallery and #gallery li
Chezki Indursky
3,500 Pointsit does has an "#" sign. http://web-suagol06dn.treehouse-app.com/css/main.css