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 Build a Website with Foundation Building the Top Bar

Hi, why the "hide-for-small-only" class is not valid for this task?

I try to use the "hide-for-small-only" class to hide the paragraph for small screens but is not valid and I don´t know why

index.html
<!DOCTYPE html>
<html>

<head>
  <title>Ribbit - A Treehouse Project</title>
  <meta name="viewport" content="width=device-width">
  <link rel="stylesheet" href="css/normalize.css" >
  <link rel="stylesheet" href="css/foundation.min.css">
  <link rel="stylesheet" href="css/my-styles.css" >
</head>
<body>

  <!-- Top Bar -->
  <div class="contain-to-grid"> 
    <nav class="top-bar">
      <a class="main-logo" href="#">Ribbit</a>
      <p class="right hide-for-small-only">A Treehouse Project</p>
    </nav>
  </div><!-- Top Bar -->


</body>
</html>

1 Answer

Jack Spangenberg
Jack Spangenberg
643 Points

You need to use the hidden-sm-down class.

Also, .contain-to-grid isn't a thing. Use the .fluid class in conjunction with your element name to contain the items to their containers or columns.