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 Foundations Values and Units Relative Length Units

challenge 3, stage 4

Select the link with the class more. Using the rem unit, set its font size back to the base font size of the root HTML element.

<!DOCTYPE html>
    <title>Relative Length Units</title>
    <link rel="stylesheet" type="text/css" href="cc1-main-styles.css">
    <link rel="stylesheet" type="text/css" href="style.css">
    <div class="box">
        <h1>Let's use Font-Relative Length Units</h1>
            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
            tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
            quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
            consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
            cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
            proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
            <a class="more" href="#">Read more...</a>
h1 {
  font-size: 40px;
p {
  font-size: 24px;

2 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Angeline,

To select a class you add a . before the class name like so .more then the rest is just like you did with the h1 or p tag, you need to set the font-size.
The base font size in rem is 1

If you need anymore help just ask.

Hope this helps.

Mate Maksan
Mate Maksan
2,395 Points

in style.css you should have something like this (replace font size 24 with size you need):

.more { font-size: 1rem; }

edited: placed px instead of rem