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 trialsuzan lohm
1,892 Pointswhat is wrong with this code?
having trouble passing this part of challenge, please help
<!DOCTYPE html>
<html>
<head>
<title>Lake Tahoe</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header id="top" class="main-header">
<span class="title">Journey Through the Sierra Nevada Mountains</span>
<h1>Lake Tahoe, California</h1>
</header>
<div class="primary-content t-border">
<p class="intro">
Lake Tahoe is one of the most <span>breathtaking attractions</span> located in California. It's home to a number of ski resorts, summer outdoor recreation, and tourist attractions. Snow and skiing are a significant part of the area's reputation.
</p>
<a href="#more">Find out more</a>
</div>
<footer class="main-footer">
<p>All rights reserved to the state of <a href="#">California</a>.</p>
<a href="#top">Back to top »</a>
</footer>
</body>
</html>
/* Complete the challenge by writing CSS below */
.class {
font-size: 16px;
}
.intro {
font-size: 1.2500em;
}
2 Answers
Samuel Webb
25,370 PointsYou're trying to set an element with a class of .class
to 16px when there is nothing with that class name. The example doesn't want you to set anything to 16px. Its saying, "If the base font size is already 16px, set the font size to 20px but do it in ems." That would be 1.25em. If you erase that entire first section that sets a font size to 16px, you'll be able to continue. Also, there's no point in having those extra 0's. 1.25 and 1.25000000000 are the same number.
Chris Higgins
6,813 PointsAll they want is for it to be 1.25em. without the extra Zero's