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 trial
Alcibiades Montas
5,974 PointsStuck in a coding challenge?
Hey guys!
I just started my team-treehouse subscription and stuck in a (very early) coding challenge.
I am confident my sintax is right but for some reason or the other the code is not coming through? Is this a good place to ask? Is that Kosher in this community?
4 Answers
James Barnett
39,199 PointsThat's valid HTML in examples you mention, however you would select it using different CSS.
To select 1)
.omega > #featured cupcake
To select 2)
.omega#featured cupcake
Shelby Williams
1,415 PointsCan you be more specific as to what challenge your having a problem with?
Alcibiades Montas
5,974 PointsOne of the CSS challenges. I was actually able to complete it. However this is the reason why i was confused:
I was writing the following (1)
<div class ="normalize">
<div class="omega">
<div id="featured cupcake">
<img src="pic.jpg">
</div>
</div>
</div>
However the answered turned out to be the following (2):
<div class ="normalize">
<div id="featured cupcake" class = "omega">
<img src="pic.jpg">
</div>
</div>
Why is #2 right and not #1?
Thanks!
Alcibiades Montas
5,974 PointsSorry I am unable to put the actual HTML on my comment...how do I do that?