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 How to Make a Website Adding Pages to a Website Add and Style Icons

Code 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

Did you add braces? For example ...

p {font-size:0.9em;}

Oh sorry...

I wrote it out as

h3 { font-size: 0.9em; }

Can you give the full question of the challenge?

This 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;
}

Yes I wrote the code as: Oh sorry...

I wrote it out as

h3 { font-size: 0.9em; }

Mike Walck
Mike Walck
449 Points

I 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; }

Hi Mike. Try removing the comma after h1 and see if it works :)

Mike Walck
Mike Walck
449 Points

Thanks. I knew it was something simple that I was missing!

You are welcome Mike. I'm glad you got it working.