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

HTML Build a Simple Website Creating a Website Structure Using Classes


What is wrong with this code? <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> </div> </div>

8,742 Points

Can you post the code you are having trouble with. I don't understand your question?

Tom Mertz
Tom Mertz
15,254 Points

To post the code you need to wrap it in the code markdown. When you edit, click on the Markdown Cheatsheet to the bottom right of your text input and it'll show you how to do it :)

1 Answer

Gareth Redfern
Gareth Redfern
36,217 Points

Yeah your code is missing so its hard to see where the error is, you will want to do something like this though:

  <div class="container clearfix"> <!-- NOTICE THIS DIV WITH THE CLASSES CONTAINER AND CLEARFIX -->
    <div id="featured-cupcake">
      <h2>Cupcake of the Week</h2>
      <img src="img/featured-cupcake.jpg">