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

Next, target the class main-heading. Give the heading a font-size property and set the value to 72px

Nothing I do works. What am I doing wrong?

Can you post the URL to the challenge you're referencing?

I got it! I was adding it in style.html instead of style.css. Thank you.

Awesome, Felicia! :)

6 Answers

Try the following

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

Common mistakes are with the various punctuation and a space between 72 and px. Without your code, I cannot say.

She fixed it, Theodore. She was putting her CSS in the wrong place. See the comments above.

I saw that after I posted. I missed the comments.

No worries! I know you're just helping out :)

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

^ I keep putting this in the css section and it says "Bummer: Make sure you're including a font-size property and setting the value to 72px." What's the problem with this code?

Thank you to you both. I'm glad that we can help each other out when we need assistance :)

Absolutely! That's what we do. :)

CORRECT ANSWER

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

I have still not been able to get past this challenge.....any and all help is Hugely appreciated

there is something wrong with challenge, no matter what i do its wrong. can anyone please post the whole answer !!

I agree with Mansor Almost. My solution to the challenge was and in style.css: .main-heading { font-size: 72px }

and code/text editor keeps saying: Bummer: Make sure you’re including a ‘font-size’ property and setting the value ‘72’ How is my answer wrong when I've set 'class' element correctly in html correctly. PLEASE HELP!! as I'm unable to proceed to the next challenge question.