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 trialJake Walker
2,194 PointsWhat am I doing wrong?
Working in the "Make a Website" track, and I'm on code challenge 1, Make a CSS Image Gallery.
I'm on step 2, where I have to select the element with the id "gallery" and set the margin and padding to 0, and the list style to none.
I have typed out
#gallery {
margin: 0;
padding: 0;
list-style: none;
}
However it always that only one side has no margin.
What am I doing wrong?
3 Answers
Clinton Hopgood
7,825 Pointscheck that the CSS is cascading in the correct order.
jase richards
10,379 PointsIs any of the styling being applied? Like is the list-style being removed?
Also is your html correct is it id="gallery"
Stephan Kuster
7,168 PointsThe code is correct, I have tested it by copy and pasting your code in the challenge and I have passed it. Could you post the complete code of that file?
Jake Walker
2,194 PointsStephan,
Thank you for your answer. I tried it again this morning so I could paste the code here for you, but it worked this time. I guess it was just a bug.
Jake Walker
2,194 PointsJake Walker
2,194 PointsWeird. It's working this morning, the exact same code. I guess I just needed to log out and log back in. Thanks for your help any way!