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 trialMatt Bardal
2,254 PointsSmells 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 & 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 & 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>© 2012 Smells Like Bakin' Cupcake Company. All Rights Reserved.</p>
</div>
</div>
</body> </html>
18 Answers
Matt Campbell
9,767 PointsWatch 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. :)
Chase Lee
29,275 PointsDid you add any css?
Matt Bardal
2,254 PointsYes, 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
29,275 PointsWrap your code in " `` ".
Chase Lee
29,275 PointsIt will look like this
and you can display your code like this: .menu{color: blue;}
Matt Bardal
2,254 PointsHere is a screenshot anyway:
Matt Bardal
2,254 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">
<link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">
</head>
Chase Lee
29,275 PointsCan I see the stylesheet?
Matt Campbell
9,767 PointsI'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
29,275 PointsThat's true I didn't notice that before.
Matt Bardal
2,254 PointsThe Normalize or Grid?
Chase Lee
29,275 PointsYou need to create your own stylesheet that is like Normalize and Grid.
Matt Bardal
2,254 PointsWell, 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
29,275 PointsThe stylesheet should come with the Project Files.
Matt Bardal
2,254 PointsAll I got is the Normalize.css and the grid.css for the Project Files.
Chase Lee
29,275 PointsWhat badge are you on?
Chase Lee
29,275 PointsThey don't have a stylesheet that styles the content. Just hang in there your doing great.
Matt Bardal
2,254 PointsOkay, so just continue on and don't worry about that little problem?
Matt Bardal
2,254 PointsOkay, thanks for your help! :)
Chase Lee
29,275 PointsYour welcome.
Harrison Bolin
3,975 PointsIf 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
Matt Bardal
2,254 PointsMatt Bardal
2,254 PointsSo just forget about this for awhile and continue on?
Chase Lee
29,275 PointsChase Lee
29,275 PointsWell if you tell me what badge your on and the Project Files are on my computer the I can give you the styles.
Matt Bardal
2,254 PointsMatt Bardal
2,254 PointsI'm on Creating a Website Structure right now.