Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

phillipfreeman2
5,804 PointsCode challenge does not recognize when I added font-size to my code.
I am doing a Code challenge right now and one of the things it want me to do is to write out the font-size to 0.9em. When I write it out it says that I did not do it. Can someone show me the right way?
ex. font-size: 0.9em;
That is how i wrote it out.
3 Answers

Gloria Dwomoh
13,104 PointsDid you add braces? For example ...
p {font-size:0.9em;}

Luke Glazebrook
13,564 PointsThis is an example of what the code should look like. The element selector that you use might be slightly different though depending on your code:
h1 {
font-size: 0.9em;
}

phillipfreeman2
5,804 PointsYes I wrote the code as: Oh sorry...
I wrote it out as
h3 { font-size: 0.9em; }

Mike Walck
449 PointsI am a little confused and in the same situation.
Trying to get the the font size in an h1
h1, { font-family: 'open sans', sans-serif; font-size: 1.75em; font-weight: normal; }

Gloria Dwomoh
13,104 PointsHi Mike. Try removing the comma after h1 and see if it works :)

Mike Walck
449 PointsThanks. I knew it was something simple that I was missing!

Gloria Dwomoh
13,104 PointsYou are welcome Mike. I'm glad you got it working.
phillipfreeman2
5,804 Pointsphillipfreeman2
5,804 PointsOh sorry...
I wrote it out as
h3 { font-size: 0.9em; }
Gloria Dwomoh
13,104 PointsGloria Dwomoh
13,104 PointsCan you give the full question of the challenge?