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.

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.