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

CSS

Using classes Code Challenge

I am very frustrated with the first code challenge on this which asks you to "Add a 'div' around the 'featured-cupcake' element and give it the classes 'container' and 'clearfix'."

I did this after the opening body tag

 < div class="container" "clearfix" >

I have not done any spaces (only here as it is taking it out of my post when I did a direct copy and paste) in the actual code and I closed the div tag at the end.

Is there a way to attach a screenshot to this to show you as it is annoying as I am sure it is right.

And it is saying 'Bummer! Your new div is missing a class. It's supposed to have both 'container' and 'clearfix' as classes"

I have checked and rechecked the video for this and that is exactly how it is written and the actual site Smells Like Bakin' has the code identical to that. I am confused what is wrong here.

Thanks in advance

2 Answers

You need to take out the quote after container and the one before clearfix.

Thank you, I am so embarrassed as I have been looking at it for half an hour or more and did not see that. Tired or some other such stupid thing.

Thanks plus sorry for the stupidity

Don't sweat. I'm remember having problems with that code challenge for a week or two when I first started.