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 trialKyle Sphire
1,723 PointsPlease 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
5,709 Pointstry to put font-size on different row from { and }
1 Answer
Steven Parker
231,261 PointsThe 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.
Ana-Maria Latiu
5,709 PointsAna-Maria Latiu
5,709 Points.main-heading { font-size: 72px; }