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 trialJewel Do
6,067 Points.heading { font-size: 1.8em; } .title { font-size: 1.625rem; } .h1 { font-size: 5.625rem; } Is this correct?
I really need help. I do not know if this answer is correct
/* Complete the challenge by writing CSS below */
.heading {
font-size: 1.8em;
}
.title {
font-size: 1.625rem;
}
.h1 { font-size: 5.625rem;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Developer Diane: Resume</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<header>
<div id="header-box">
<h1 class="heading">Developer Diane: Resume</h1>
<address>
<p>website: developerdiane.com</p>
<p>email: diane@developerdiane.com</p>
</address>
<img src="developer-diane.jpg" alt="Developer Diane coding on her laptop.">
</div>
</header>
<section id="education">
<h2>Education</h2>
<ul>
<li>
<h3><a href="https://teamtreehouse.com">Treehouse</a></h3>
<p>Front End <em>Web Development</em> Techdegree</p>
<p class="date special">Graduated January 2020</p>
</li>
</ul>
</section>
<section id="experience">
<h2>Experience</h2>
<ul>
<li>
<h3>Super Web Design Shop</h3>
<p>Junior Developer</p>
<p class="date special">February 2020-present</p>
</li>
<li>
<h3>Pretty Good Websites, Inc.</h3>
<p>Web Development Intern</p>
<p class="date">July 2019-January 2020</p>
</li>
</ul>
</section>
<section>
<h2>Skills</h2>
<ul id="skills-list">
<li class="top-skill">HTML</li>
<li>CSS</li>
<li class="top-skill" id="proud">JavaScript</li>
<li>Git</li>
<li>Bootstrap</li>
<li class="top-skill">Mobile Web Development</li>
<li>Accessibility</li>
</ul>
</section>
<section>
<h2>Awards and Achievements</h2>
<ol>
<li>Dev Ninja Award, November 2020</li>
<li>Developer of the Month, October 2019</li>
<li>Achieved rating of 6 kyu on <a href="https://www.codewars.com/">Codewars</a></li>
<li>Certified Accessibility Specialist</li>
</ol>
</section>
<footer>©2020 Developer Diane.</footer>
</main>
</body>
</html>
3 Answers
Steven Parker
231,271 PointsThe challenge tells you if your solution is correct (or not) when you use the "Check Work" button. This code should return a response of "Bummer: Make sure you're setting the font-size of .heading
using a rem unit."
But besides the first task not being completed, it looks like some of the originally provided code was removed, plus some code was added that is not part of this challenge. When doing the challenges, be sure to do only what the instructions ask for!
Jewel Do
6,067 PointsSteven Parker I have no idea what you are mentioning about.
Steven Parker
231,271 PointsWhen the challenge starts, the provided contents of the first file are this:
/* Complete the challenge by writing CSS below */
html {
font-size: 16px;
}
header {
font-size: 1.5em;
}
.heading {
font-size: 5em;
}
Even if you've done the first task, there should only be one small difference on just one line. But compare this to the code you included above and you'll see they are very different!
Jewel Do
6,067 PointsSteven Parker This is the prompt. The em-based font-size value for .heading is relative to its parent header's font-size value. This causes a compounding issue that makes the font-size value larger than the desired value.
Replace the em units of .heading with a unit that is relative to the root element of the page.
Steven Parker
231,271 PointsThat sounds like the same challenge, and the instructions are only asking for a unit change in just one of the 3 rules. But 2 of the rules shown in the code above have completely different targets and contents compared to what the challenge starts with! It looks like code from a different challenge entirely.
Try starting over and making only that one change in task 1.
Jewel Do
6,067 PointsJewel Do
6,067 PointsWhat do you mean? This is what i did. .heading { font-size: 1.8em; }
.title { font-size: 1.625rem; }
h1 { font-size: 5.625rem; } I do not know how to answer the question. Please help me. Thanks
Steven Parker
231,271 PointsSteven Parker
231,271 PointsThe challenge gives you code to start with that has rules for "html", "header", and ".heading". The first two seem to be missing in the code shown above. Also, the challenge doesn't ask for new rules for ".title" or ".h1".
Is it possible that the code shown here is for a different challenge than the one linked to the button?
What specifically did the instructions ask you for?