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

lynda montgomery
lynda montgomery
3,746 Points

I'm really not sure if I understand what this question is asking. I've tried a number of things.

Are there suppose to be 4 classes for that element? Ive tried wrapping two separate divs and one extended one. I really don't know what else to try.

2 Answers

Erik McClintock
Erik McClintock
45,783 Points

Lynda,

This challenge is asking you to first wrap the 'featured-cupcake' element in a div, and to give that new wrapping div two classes. The second task is then asking you to append two classes to the featured-cupcake element itself, NOT the new wrapping div.

So for task 1, you're creating a new wrapper div and giving it two classes.

For task 2, you're adding two classes to the pre-existing featured-cupcake element.

Hope this helps to clear things up!

Erik

lynda montgomery
lynda montgomery
3,746 Points

If I am understanding correctly, I would be adding the two classes right after the two existing... so then all four would be in the same div... if so I tried that and it was incorrect.

<div class="container clearfix grid_5 omega">

I also tried

<div class="container clearfix"> <div class="grid_5 omega"> with the appropriate </div>'s.

btw... the question may have been grid_4, I don't remember, but I had the correct one.

Thanks in advance.

Erik McClintock
Erik McClintock
45,783 Points

Lynda,

There is a misunderstanding. The classes will NOT all be on the same div.

Two of the classes ('container' and 'clearfix') will be on the container div that you create, and the next two classes will be applied to the featured-cupcake div itself.

<div class="two classes go here for task one">
<div id="featured-cupcake" class="two classes go here for task two">
...
</div>
</div>

Does this make more sense?

Erik

Erik McClintock
Erik McClintock
45,783 Points

My pleasure :)

Happy coding!

Erik