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

General Discussion

Angela Kruse
Angela Kruse
249 Points

Working with Grids-NEED HELP

I am trying to work with grids and I can not seem to get the code to work. Below is a snippet of the code I am working with. Can anyone tell me what I am doing wrong?

<div class="container clearfix"> <div class="grid_4"> <img src="img/logo.gif" alt="Smells Like Bakin" </div> <ul class="nav"> <li><a href="#">About <li><a href="#">Cupcakes & Prices <li><a href="#">Locations <li class="Last"><a href="#">Contact Us </ul> <div id="intro"> <h1>Opposites really do attract, escpecially in our kitchen! We combine unexpected flavors that melt togethter to create ironically delicious desserts.</h1> <p><a href="#"class"btn">Browse our Cupcakes</a></p> </div>

3 Answers

Steve Linn
Steve Linn
11,841 Points

you did not close your img tag

Angela Kruse
Angela Kruse
249 Points

Thank you! I see that mistake now. Hate to ask should have been more specific in the post. Can you tell me why it is not changing the layout when I refresh, like the video. In the video the list moves to the right of the logo. I pretty sure I have followed the code but its not working.

Steve Linn
Steve Linn
11,841 Points

You are missing close tags on your elements

I think it helps a lot to organize your code this way…. when I create a new tag I always close it right away for example I will type <h1></h1> then put my text inside of it…that way I don't forget to close it

take a look at your code, see the missing close tags?
Hint - there are 6 missing in this code

<div class="container clearfix"> 
    <div class="grid_4"> 
        <img src="img/logo.gif" alt="Smells Like Bakin" 
    </div> 
    <ul class="nav"> 
        <li><a href="#">About 
        <li><a href="#">Cupcakes & Prices 
        <li><a href="#">Locations 
        <li class="Last"><a href="#">Contact Us 
    </ul> 

<div id="intro"> 
    <h1>Opposites really do attract, escpecially in our kitchen! We combine unexpected flavors that melt togethter to create ironically delicious desserts.</h1> 
    <p><a href="#"class"btn">Browse our Cupcakes</a></p> 
</div>
Angela Kruse
Angela Kruse
249 Points

Maybe I need to go back in videos and try again. I think I am understanding about closing elements however I am not seeing where I need to close them. Thanks for helping!

Angela Kruse
Angela Kruse
249 Points

Maybe I need to go back in videos and try again. I think I am understanding about closing elements however I am not seeing where I need to close them. Thanks for helping!