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

3,197 Points


the added class for showing the paragraph in small window is not working. I don't know what I am missing.

<!DOCTYPE html>

  <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" />

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


2 Answers

Abe Layee
Abe Layee
8,378 Points

I don't see any media queries in your code. Try this

@media screen and (max-width:480px) {
 .hide-for-small-only {
   display:none;//this hides the paragraph only on small devices at 480px


I found the correct answer by trial an error:

  <p class="right hide-for-small">A Treehouse Project</p>

Foundation's documentation is not as navigable as other sites...