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 CSS Basics (2014) Understanding Values and Units Em and Rem Units

/*What maths should i be doing here*/

pleaase elaborate on the maths part

16px = 1 em the root would be 1.8em

is it how many 1.8ems go into 53 if so its like 23.4444444444444............. this cant be right or is it how many 24.bla bla blaa go into 53

/* Complete the challenge by writing CSS below */

header {
  font-size: 1.8em;

.title {
  font-size: 1.625rem;

h1 {
  font-size: 5.625rem;
h2 {
  font-size: 53px;  /*What maths should i be doing here*/
<!DOCTYPE html>
    <title>Lake Tahoe</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
      <span class="title">Journey through the Sierra Nevada Mountains</span>
      <h1>Lake Tahoe, California</h1>
    <div class="main-content">
        Lake Tahoe is one of the most breathtaking attractions 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.
      <a href="#">Find out more</a>
      <h2>Check out all the Wildlife</h2>
        As spawning season approaches, the fish acquire a humpback and protuberant jaw. After spawning, they die and their carcasses provide a feast for gatherings of mink, bears, and Bald eagles.
      <a href="#">See the Wildlife</a>
      <h3>From Tents to Resorts</h3>
        Lake Tahoe is full of wonderful places to stay. You have the ability to sleep in the outdoors in a tent, or relax like a king at a five star resort. Here are our top three resorts:
      <p>All rights reserved to the state of <a href="#">California</a>.</p>
      <a href="#top">Back to top &raquo;</a>

2 Answers

Shane Oliver
Shane Oliver
19,977 Points

As per my previous answer - the root is 16px. 1em = 16px. 1.8em is the font-size for the header. The em units used in another element do not effect the size of another elements em units, only the base does.

Tanja Schmidt
Tanja Schmidt
11,798 Points

In your task you are supposed to give your h2-element a font-size in em that's equivalent to 53px. The h2's parent element has a font-size of 16px. 1em = the font-size of the parent element, in this case: 1em = 16px. To define how many ems go into 53px in this case you only have to divide 53px by 16px. 53 : 16 = 3.3125 (Simply use a calculator or let your favorite search engine calculate it for you.)

So the answer is:

h2 {
  font-size: 3.3125em;

I've entered this in your challenge and it worked fine.