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 trialJonathan Hooley
2,931 PointsNot letting me check my work on code challenges.
Here is the code for the code challenge under building a website. It asks to build a "div" aroung the element 'featured-cupcake' and have a container and a clearfix. Anyways its not letting me check it for this challenge and keeps popping up an error. Hope you can help. Thanks.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> <link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen"> </head>
<body> <div class="container clearfix"> <div id="featured-cupcake"> </div> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg"> </div> </body> </html>
3 Answers
J.T. Gralka
20,126 PointsJonathan,
Sometimes the code challenge page throws some errors; I'm pretty sure the support team is aware of these issues, but if you continue to get errors after repeated attempts, don't hesitate to email them directly: support@treehouse.com
As far as this particular code challenge is concerned, remember to add the div tags ad add the respective classes to the div. If I remember correctly, it goes something like this:
<div class="container clearfix">
<div id="featured-cupcake">
<h2>Cupcake of the Week</h2>
<!-- Other content goes here, I guess... -->
</div>
</div>
The clearfix class might go somewhere else; I forget the specific question, but if you post it verbatim as a reply along with the HTML code you've tried to have the code challenge software interpret, I (or anybody else in the forum community, for that matter) could definitely take a look at it for you!
Best of luck,
J.T.
Jonathan Hooley
2,931 PointsYeah I emailed them and hoping to get it straightned out. I need to get this done for class. You are correct on the div tag though the closing div does go towards the bottom. Thanks for the help.
James Barnett
39,199 PointsIn order for us to see your code you need to format it using markdwon syntax, you need to indent each line of your code using 4 spaces.