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 trialphillipfreeman2
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,116 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,116 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,116 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,116 PointsGloria Dwomoh
13,116 PointsCan you give the full question of the challenge?