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 Framework Basics Prototyping with Foundation Build with Grids

framework basics challenge

having trouble making 3 equal columns.....where am i going wrong?

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Ribbit - A Treehouse Project</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/normalize.css" rel="stylesheet" media="screen">
    <link href="css/foundation.min.css" rel="stylesheet" media="screen">
  </head>
  <body>

    <!-- Feature Content -->
    <div class="row">

      <div class="medium-3-columns">
        <h3>Column 1</h3>
        <p>Learn how to write the code that downloads and displays messages, photos, and videos that timeout after a few seconds. Then create the code that deletes them from the back-end to make them "self destruct."</p>
      </div>
      <div class="medium-3-columns">
        <h3>Column 2</h3>
        <p>Learn what Parse.com offers as a "backend-as-a-service" platform. Explore the user account management APIs provided by Parse.com and write the code to create and save a new user in a Parse.com data store.</p>
      </div>
      <div class="medium-3-columns">
        <h3>Column 3</h3>
        <p>We'll teach you how to upload images, video files, and messages to Parse.com's cloud servers. Then learn how to retrieve the data by setting up custom queries that download and display them in the app.</p>
      </div>

    </div><!-- End Feature Content -->

  </body>
</html>

3 Answers

Sara Hardy
Sara Hardy
8,650 Points

Have you tried using large-3-columns as your class names, rather than medium?

yes tried that but doesnt work :/

Sara Hardy
Sara Hardy
8,650 Points

I looked at the foundation docs. The classes for their grid are formatted like this: medium-3 columns (note that columns is separate, not with a hyphen). Also 3+3+3 = 9. Your grid needs to equal 12. So if you want three columns, your classes need to be medium-4 columns

<div class="row">

      <div class="medium-4 columns">
        <h3>Column 1</h3>
        <p>Learn how to write the code that downloads and displays messages, photos, and videos that timeout after a few seconds. Then create the code that deletes them from the back-end to make them "self destruct."</p>
      </div>
      <div class="medium-4 columns">
        <h3>Column 2</h3>
        <p>Learn what Parse.com offers as a "backend-as-a-service" platform. Explore the user account management APIs provided by Parse.com and write the code to create and save a new user in a Parse.com data store.</p>
      </div>
      <div class="medium-4 columns">
        <h3>Column 3</h3>
        <p>We'll teach you how to upload images, video files, and messages to Parse.com's cloud servers. Then learn how to retrieve the data by setting up custom queries that download and display them in the app.</p>
      </div>

    </div><!-- End Feature Content -->

thank you. that makes sense. but for some reason it still isnt letting me pass the challenge...