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

bahman sadeghi
bahman sadeghi
4,810 Points

class

hi what is problem of this code , objective 2 <!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> </div> </div> </body> </html>

bahman sadeghi
bahman sadeghi
4,810 Points

*/ <!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> </div> </div> </body> </html> /*

3 Answers

For part 1 ensure you do div class="container clearfix" after the opening body tag <body> then </div> before the closing body tag </body>. For part 2 add class="grid_5 omega" the part with the id of featured-cupcake.

Do you have the link to the question?

bahman sadeghi
bahman sadeghi
4,810 Points

yeah, second problem of this: http://teamtreehouse.com/library/build-a-simple-website/creating-a-website-structure/using-classes
when is solve it, is says that my first solution for first problem even don`t work. i pass first one with success.