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

Smells Like Bakin: CSS - Working With Grids

Here is my code, I don't understand what is wrong, the website doesn't look like the website in the video. Help..? Here's what my website looks like: http://imgur.com/FYRfqAK

<!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="img/logo.gif" alt="Smells Like Bakin"> </div> <div class="grid_8 omega"> <ul class="nav"> <li><a href="#">About</a></li> <li><a href="#">Cupcakes & Prices</a></li> <li><a href="#">Locations</a></li> <li class="last"><a href="#">Contact Us</a></li> </ul> </div> <div id="intro" class="grid_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="img/you-bake-me-blush.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 strange combo of flavors will kick your taste buds into fiesta mode!</p>
  <img src="img/featured-cupcake.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="#">Bacon Me Crazy</a> and <a href="#">Jalapeño So Spicy</a>. </p>
  <img src="img/new-cupcake-bacon.jpg" alt="Bacon Me Crazy">
  <img src="img/new-cupcake-jalapeno.jpg" alt="Jalapeno me 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 successful 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="img/facebook.gif" alt="Facebook"></a>
  <a href="https://twitter.com/#!/smellslikebakin"><img src="img/twitter.gif" alt="Twitter"></a>

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

</body> </html>

18 Answers

Matt Campbell
Matt Campbell
9,767 Points

Watch the next video or two. If memory serves me right, and I did this a couple of months ago, it took you through adding css in the order of includes so the actual styling comes after grid and normalize. Both of which are basically DOM formatting.

Anyway, if you carry on with another video or two, I think you should find you're taken through adding YOUR style sheet and styling the page. Grid and normalise both look to be working. Next up is colours and some floating, margins and padding to get things in the right place. :).

Don't panic and take it one video at a time. If you're passing the code challenges, quizzes and putting into your own work what you're learning you'll get there in the end. Just takes a bit of time. :)

So just forget about this for awhile and continue on?

Chase Lee
Chase Lee
29,275 Points

Well if you tell me what badge your on and the Project Files are on my computer the I can give you the styles.

I'm on Creating a Website Structure right now.

Chase Lee
Chase Lee
29,275 Points

Did you add any css?

Yes, I have this.

<!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>

Chase Lee
Chase Lee
29,275 Points

Wrap your code in " `` ".

Chase Lee
Chase Lee
29,275 Points

It will look like this and you can display your code like this: .menu{color: blue;}

Here is a screenshot anyway:

http://www.imgbomb.com/i/?Ma6Vc

<!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>

Chase Lee
Chase Lee
29,275 Points

Can I see the stylesheet?

Matt Campbell
Matt Campbell
9,767 Points

I'm not seeing a linked style sheet for actual styling, styles.css or something similar. That said, all you've got so far is the grid.css classes on your HTML.

Chase Lee
Chase Lee
29,275 Points

That's true I didn't notice that before.

The Normalize or Grid?

Chase Lee
Chase Lee
29,275 Points

You need to create your own stylesheet that is like Normalize and Grid.

Well, I don't understand. It never said you had to create your own stylesheet for it to work... I've just been following along.

Chase Lee
Chase Lee
29,275 Points

The stylesheet should come with the Project Files.

All I got is the Normalize.css and the grid.css for the Project Files.

Chase Lee
Chase Lee
29,275 Points

What badge are you on?

Chase Lee
Chase Lee
29,275 Points

They don't have a stylesheet that styles the content. Just hang in there your doing great.

Okay, so just continue on and don't worry about that little problem?

Okay, thanks for your help! :)

Harrison Bolin
Harrison Bolin
3,975 Points

If I remember, Nick does have you create a "style.css" later on in the videos. His download is slightly different from the actual video, but you get the same basic results.

Just hang in there! It seems like you already figured this out, but I just wanted to hand you this little tip