Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

Smells Like Bakin page layout help

I don't know if this will be able to be posted but i added the @ signs so maybe it won't be read. But pretty much my problem is if you copy and paste this and save it to an html file and open it. you can see that i can't get the pictures to align. Is it because i didn't link the CSS documents correctly? The "Cupcake of the Week" and "Fresh out the Oven" should be side by side within a grid of 12. Ive gone through the lesson multiple times now and I've checked my text editor a bunch of times as well and i cannot seem to figure out why this is still happening.....please help me I'm a noob!

7 Answers

James Barnett
James Barnett
39,199 Points

You forgot to close your you-bake-me-blush.gif img tag

i guess before i can even get help i need to know how to post my code onto the forum without it being converted. can anyone help me with this so i can post my code and maybe someone else can help check it for me thanks

chrismartinson
chrismartinson
3,218 Points

Code

Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.

        ```html
        <p>This is code!</p>
        ```
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title> Smells Like Baking 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 flavors</h1>
      <p><a href="#" class="btn">Browse Our Cupcakes</a></p>
    </div>
    <div class="grid_3 omega">
      <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> Its 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="#"> Jalapeno So Spicy</a></p>
        <img src="img/new-cupcake-bacon.jpg">
        <img src="img/new-cupcake-jalapeno.jpg">
    </div>
    <!-- Can you do comments like in in xhtml5?
    -->
    <div class="grid_7">
      <h2> Inside the kitchen </h2>
        <p>Smells like Bakin' started 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>
    </div>
    <div class="grid 5 omega">
      <h2> Get Bakin with Us</h2>
      <div id="contact">
        <p> Call us: <span> 1-555-Cup-Cake</span><br> Email Us: <a href="#">bakeon@smellslikebacon.com</a></p>
      </div>
    </div>
      <p> We annouce all of our new flavors first through Facebook and Twitter.</p>
      <a href="http://www.facebook.com/smellslikebakin"><img src="img/facebook.gif"></a>
      <a href="http://www.twitter.com/#!/smellslikebakin"><img src="img/twitter.gif"></a>
    </div>

    <div id="copyright" class="grid_12">
      <p> &copy; 2012 Semlls like Bakin Cupcake Company</p>
    </div>

  </div>
</body>
</html>

thats all that keeps showing up for me when i try it like that and idk if you can help me when its posted like this

chrismartinson
chrismartinson
3,218 Points

Quick question, have you tried comparing your index.html file to the one they supplied? I would suggest doing that first and seeing if there's something small you may have missed. Make sure to compare your style sheet as well. Hope that helps.

something so simple thank you guys very much for your quick responses!