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
Vlad Kitanoski
2,728 PointsRelative Length Units: Challenge
Hey Guys
I'm stuck on the Code Challenge: Relative Length Units 3rd Question
"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."
- I've read all the other posts by people and It' still not working for me :/ for some reason
Here is what I have so far:
/* Write your CSS code below */
h1 { font-size:2.5em; }
p { font-size:1.5em; )
.more { font-size:1rem; }
Any help would be much appreciated
Thanks
Vlad Kitanoski
2,728 PointsThank You, It was my stupid error with a ) instead of a } - half asleep typo haha :P
Guil Hernandez
Treehouse TeacherAh, see, I didn't even catch that in your code example. Oh the little things :)
Keep it up, Vlad!
Vlad Kitanoski
2,728 PointsGuil Hernandez - I have now learned that it's always the little things haha I kept on trying to solve my error in my dream lol thanks again, the videos are awesome!
4 Answers
Gonzalo González Mora
Courses Plus Student 3,862 PointsYou have a parenthesis instead of a curly brace on the p declaration block. I think that might be the problem.
I can't remember the HTML code, but you probably don't need the a in the selector, .more will do just fine and the selector won't be too restrictive.
Vlad Kitanoski
2,728 PointsOh God! Haha I knew it was something as stupid :P I feel like a fool lol serves me right for trying to finish it while I was half asleep lol
THANK YOU! :P
Gonzalo González Mora
Courses Plus Student 3,862 PointsHahaha yeah, don't worry, it happens all the time, at least to me! If something should be working, it's probably some silly mistake like this :)
marcinlisewski
19,839 PointsHi, maybe you should try:
li .more{font-size:1rem;}
??
Robin Zhao
3,039 Pointsthe selector for links with class more is written:
a.more
so your answer would be:
a.more { font-size:1rem; }
Vlad Kitanoski
2,728 PointsThanks everyone for all your help! Much appreciated :-)
Guil Hernandez
Treehouse TeacherGuil Hernandez
Treehouse TeacherVlad Kitanoski,
I tested the code challenge and all worked well with those answers. Can you please post the hint or error message its giving you?
Thanks!