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 trialGerman Tsatsura
Full Stack JavaScript Techdegree Student 10,173 PointsAm I in the wrong here??
Challenge Task 2 of 4 is asking me to select the element with the ID gallary, then remove margin, padding and bullet points.... this is for css
What I have done
gallary {
margin:0;
padding:0;
list-style:none;
}
and yet it says Bummer (lol)! It looks like at least one side has no margin. Be sure you set all sides to zero margin.
I then tried
gallary {
margin: 0 0 0 0; padding: 0; list-style: none; }
and it said the same thing.
then I tried
gallary {
margin-top:0; margin-bottom:0; margin-left:0; margin-right:0; padding: 0; list-style: none;
and it still said the same thing.
Am I in the wrong somewhere? please let me know
thanks guys.
4 Answers
Jason Cook
11,403 PointsI think there's a couple things happening there. First, the mispelled ID (gallery vs gallary) and the second thing is that you need to use a hashtag (#) in front of the selector to target by ID. I pasted a working example below.
#gallery {
margin: 0;
padding: 0;
list-style: none;
}
Let me know if that solves it for you.
Sagar Patel
3,653 Pointstry
gallary{ margin:none; padding:none; list-style:none; }
German Tsatsura
Full Stack JavaScript Techdegree Student 10,173 PointsI used the hash tag but you are right i did misspell gallery... thank you for looking out :)
Jason Cook
11,403 PointsYou're welcome, the simple mistakes are the hardest ones to find sometimes when we're reviewing our own code. Sometimes it just takes another pair of eyes to see what we're missing :)
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi Jason,
When css code isn't posted properly the
#
in front of id selectors is interpreted as anh1
using markdown syntax. This is why we see it bold and at a larger font size. So most likely they do have it in their code.