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 trialNicole F
1,404 PointsI'm so stuck..
The paragraph with a class called .more should be hidden. Use the display value that will hide the paragraph.
.more {
display: none;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CSS Layout</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<nav>
<ul>
<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>
</ul>
</nav>
</header>
<main>
<article>
<h1>Donuts</h1>
<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>
</article>
</main>
</div>
</body>
</html>
2 Answers
Steven Parker
231,275 PointsI copied and pasted your code directly into the challenge and it passed task 1.
Try again?
Anna Gallagher
Front End Web Development Techdegree Student 7,560 PointsHi the same issue.... .more { display: none; } .nav-btn: { display: inline-block; width: 120px; }
Steven Parker
231,275 PointsThere should not be a colon between the selector and the brace that starts the rule.
In future, always create a fresh question instead of asking one as an "answer" so it will be seen by more students.