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.

CSS CSS Layout CSS Layout Techniques Display

Yariel Peralta
Yariel Peralta
7,118 Points

need help ive been stuck on this, and I tried everything to get the answer.

/* Complete the challenge by writing CSS below */
.more {
  display: none;
<!DOCTYPE html>
<html lang="en">
  <meta charset="utf-8">
    <title>CSS Layout</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
    <div class="container">
          <li class="nav-btn"><a href="#">Donuts</a></li>
                  <li class="nav-btn"><a href="#">Tea</a></li>
                  <li class="nav-btn"><a href="#">Coffee</a></li>
        <p>Donuts are sweet snacks usually deep fried from a flour dough. The best place to buy donuts is at a bakery or specialty donut shop. Donuts go great with coffee.</p>
        <a href="#">Read more</a>
        <p class="more">In this paragraph, you’ll learn lots more interesting facts about donuts. For example, did you know that the largest donut ever made was a jelly donut weighing more than one and a half tons? It measured 16 feet in diameter and 16 inches high in the center.</p>

1 Answer

Steven Parker
Steven Parker
222,348 Points

You forgot to show the code you had tried so far, but let's look at the issues:

  • first, you forgot to close your first CSS rule with and ending brace (})
  • then, a selector for a class is simply the class name preceded by a period (the question even shows it!)
  • the display value to place items side-by-side and let you set width is inline-block
  • I'll bet you know how to set the width :wink: