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

Please help me resolve a basic CSS question: Target the class main-heading. Give the heading a font-size property 72px

under styles. css I am entering the following answer:

.main-heading {font-size:72px}

It won't work. I checked others' answers and they are putting the exact same answer as me and getting it right. I've tried it with a spaces no spaces, and everything else I can think of. When I put this in, it says "Bummer: Make sure you're including a 'font-size' property and setting the value to '72px'."

What am I missing here?

Ana-Maria Latiu
Ana-Maria Latiu
5,709 Points

.main-heading { font-size: 72px; }

Ana-Maria Latiu
Ana-Maria Latiu
5,709 Points

try to put font-size on different row from { and }

1 Answer

Steven Parker
Steven Parker
216,000 Points

The challenge instructions include this notice: "Important: In each task of this code challenge, the code you write should be added to the code from the previous task."

Since the code shown here is only for one step, I'm wondering if that's the only code in the css file at this point. If the code for the previous task(s) has been removed, that would explain the challenge not passing even though this code itself looks OK.

There could also be a problem on the HTML side. If I haven't guessed the issue, please provide the complete code for both sides. For future questions, if you use the "get help" button in a challenge, it will format and include the code for you and also provide a button linking to the challenge page.