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

Been doing this excercise so many times I'm sure I'm getting further away from solving it! please help!!

I had to add the grid and omega to the featured cupcake element which I assume is the image??

<body>
  <div class="container clearfix">
  <div id="featured-cupcake">
    <h2>Cupcake of the Week</h2>
    </div>
    <div class="grid_5 omega">
    <img src="img/featured-cupcake.jpg">
  </div>
</body>

6 Answers

Chase Lee
Chase Lee
29,275 Points

Your "container" and "clearfix" div should go all the way around the "featured-cupcake" div. Look at where it starts an ends. Take out the "grid_5" "omega" div too.

Chase Lee
Chase Lee
29,275 Points

Did you try this?

<div id="featured-cupcake" class="grid_5 omega">

Is your grid.css file linked properly?

lol missed the exercise part :)

Claire, I'm stuck in the same question. I've decided to give it a rest for a day then revisit tomorrow. I've watched the video a couple of times and I'm not sure what I'm doing wrong either. I will try what Chase James posted...maybe that will do the trick.

Good luck! :)

Chase Lee
Chase Lee
29,275 Points

Could you give me a link to the code challenge that your having problems with.

Stage 3 Challenge task 1 of 2 Add a div around the featured-cupcake element, and give it the classes and clearfix.

This is what I typed <div class= "container clearfix">

The code you posted looks incorrect from the start because it's missing a closing tag for the first div. I would imagine that the image of the cupcake should be placed inside the "featured-cupcake" div. Basically what they are asking for you to do is create a div around the "featured-cupcake" div. Said div should have the classes "container" and "clearfix".