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!

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

General Discussion

Sara Matos
Sara Matos
657 Points

Build a Simple Website > Creating a Website Structure - Code Challenge: Using Classes

Need help to solve this one:

I pass the first task

<!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"> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg"> </div> </body> </html>

But after solving the 2nd task

<!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 class="grid_5 omega"> <div id="featured-cupcake"> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg"> </div> </body> </html>

It says: Oops! It looks like Task 1 is no longer passing.

and I don't know what am I doing wrong.. :(

Can anyone help me?

6 Answers

James Barnett
James Barnett
39,199 Points

@Sara - Try posting the code you are using on codepen.io

Sara Matos
Sara Matos
657 Points

Hi James,

I post the code and i got a link:

http://cdpn.io/gDLuo

is that what you're looking for? Sorry if I'm not getting the point, I'm just new on this. :/

James Barnett
James Barnett
39,199 Points

@Sara -

You forgot to close a tag.

The easiest way to catch those kinda issues is to use a text editor like notepad++ (on Windows) or Text Wrangler (on OS X). They have tag matching which highlights or the tag half of a pair a tags so you can see when you are missing a tag.

Sara Matos
Sara Matos
657 Points

the last one was my mistake on pasting, in the quiz its closed. I just paste the code on sublime text 2 and everything seems ok.. :S i really don't know where the problem is. :(

http://cdpn.io/gDLuo

samiff
samiff
31,206 Points

I just ran through the code challenge, and it looks like you have your div elements a bit confused by looking at your codepen. There should only be two div elements being used at that point, and you have three. Below, you should be adding your classes for part 2/2 where I wrote "EDITHERE".

<div class="container clearfix">
    <div id="featured-cupcake" EDITHERE></div>
    <h2>Cupcake of the Week</h2>
    <img src="img/featured-cupcake.jpg">
</div>
Sara Matos
Sara Matos
657 Points

uff Thank you a lot!!!

It worked! THANK YOU Sam!