Welcome to the Treehouse Community
Looking to learn something new?
adding classes to an element
I am unable to pass one of my challenges and cannot for the life of me see what is wrong with my code. It keeps telling me Bummer! You're missing both classes on the 'featured-cupcake' element.
Can any one tell me what I am doing wrong?
Build a Simple Website Creating a Website Structure Using Classes
Question Add the classes 'grid_5' and 'omega' to the 'featured-cupcake' element.
My answer <!-- <div class="container clearfix"> <div id="featured-cupcake"> <div class="grid_5 omega"> <h2>Cupcake of the Week</h2> <img src="img/featured-cupcake.jpg"> </div> </div> </div> -->
Chase Lee29,275 Points
I remember having problems on this one too. Try doing this:
<div class="featured-cupcake grid_5 omega"></div>
Can't see your version of the code. But i think you'll figure out what you did wrong when having a look at the solution:
<div class="grid_5 omega" id="featured-cupcake"> ... </div>