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

Working With Grids

I am currently on the Working with Grids video, and I am having trouble viewing my output on my Google Chrome Browser. I am going to paste my code below, and if someone could check to see if the output works on your browser, it would be greatly appreciated.

<!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">
  <link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">
</head>
<body>
  <div class="container clearfix">
    <div class="grid_4">
      <img src="http://i.imgur.com/D33By0w.gif" alt="Smells Like Bakin">
    </div>
    <div class="grid_8 omega">
      <ul class="nav">
        <li><a href="#">About</a></li>
        <li><a href="#">Cupcakes &amp; Prices</a></li>
        <li><a href="#">Locations</a></li>
        <li class="last"><a href="#">Contact us</a></li>
      </ul>
    </div>
    <div id="intro" class="grind_9">
      <h1>Opposites really do attract, especially in our kitchen! We combine unexpected flavors that melt together to create ironically delicious desserts.
      </h1>
      <p><a href="#" class="btn">Browse Our Cupcakes</a></p>
    </div>
    <div class="grid_3"
      <img src="http://i.imgur.com/xuRWB8F.gif" alt="You Bake Me Blush">
    </div>
    <div id="featured-cupcake" class="grid_7">
      <h2>Cupcake of the Week</h2>
      <p>This week's featured cupcake is the <a href="#">Avocado Chocolate Cupcake</a>. It's a strange combo of flavors that will kick your taste buds into fiesta mode!</p>
      <img src="http://i.imgur.com/Xu75IoS.jpg" alt="Avocado Chocolate Cupcake">
    </div>

    <div id="new-cupcakes" class="grid_5 omega">
      <h2>Fresh Out the Oven</h2>
      <p>Our newest cupcakes are <a href="#">Bakin Me Crazy</a> and <a href="#">Jalapeno So Spicy</a>. </p>
      <img src="http://i.imgur.com/oxwqBw4.jpg" alt="Bacon Me Crazy">
      <img src="http://i.imgur.com/TEFw73O.jpg" alt="Jalapeno So Spicy">
    </div>

    <h2>Inside the Kitchen</h2>
    <p>Smells like Bakin' started out in the garage of the husband wife duo Allison &amp; Joseph. Allison is the baker, and Joseph found a way for them to make a business out of her tasty treats. Flash forward to today and they have a succesful store front, catering business, and cupcake truck. </p>

    <p><a href="#" class="btn-small">Read More</a></p>

    <h2>Get Bakin' With Us</h2>

    <div id="Contact">
      <p>Call us: <span>1-555-CUP-CAKE</span><br>
        Email us: <a href="#">bakeon@smellslikebakin.com</a></p>
    </div>

    <p>We announce all of our new flavors first through Facebook &amp; Twitter, and even take requests!</p>
    <a href="http://www.facebook.com/smellslikebakin"><img src="http://i.imgur.com/cOHY7m0.gif" alt="Facebook"></a>
    <a href="https://twitter.com/#!/smellslikebakin"><img src="http://i.imgur.com/BAz7gBM.gif" alt="Twitter"></a>

    <div id="copyright">
      <p>&copy; 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
    </div>
  </div>







</body>
</html>

Thanks, but I'm still not sure why it's not working on my browser.

5 Answers

Adhithya Kumar
Adhithya Kumar
4,972 Points

The markup seems alright. Are you sure you have the CSS files placed in the right folder?

I have them saved under a folder named "css" on my desktop. Is that correct?

Adhithya Kumar
Adhithya Kumar
4,972 Points

Place your html file in a folder. Let's name it ABC. Now inside ABC place your CSS folder.

Adhithya Kumar
Adhithya Kumar
4,972 Points

Also, your code reads

 <div id="intro" class="grind_9">

Please change that to grid_9.

thank you

Ziya Jamalov
Ziya Jamalov
6,116 Points

if html file saved on desktop too, not in any folder, then - yes, correct

Do I need to change the resolution on my Chrome Browser to see this in effect? When I refresh the page I still can't see any changes made to the website.

Ziya Jamalov
Ziya Jamalov
6,116 Points

You have a troubles with tags on grid_3. You havn't close tag. First <div class="grid_3"**>**(<-) <img=**""**(?) src="http://i.imgur.com/xuRWB8F.gif" alt="You Bake Me Blush"> </div> Second - img tag - you closed it but this tag dosent need a close pair.

Thank you.

On which line did I close the image tag?

Ziya Jamalov
Ziya Jamalov
6,116 Points

May be... have you finished a project with simple site? or its just begin?

Ziya Jamalov
Ziya Jamalov
6,116 Points

Then - h2Inside the Kitchen and the p-tag must be inside grid 7 Your code is so ... mmm... there are some mistakes

I made sure to copy exactly what they had in the video. I have double checked

Ziya Jamalov
Ziya Jamalov
6,116 Points

Just change grind_9, as said Adhithya to grid_9, and put a > bracket after <div class="grid_3"