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 CSS Basics (2014) Understanding Values and Units Pixels and Percentages

Changing font size in CSS using px

My challenge question is "Create a new rule that selects the h2 element. Set the font size to 53 pixels."

This is my answer: h2 { font-size: 53px; }

The challenge keeps giving me an error stating "Bummer! Make sure you're setting font size to 53 pixels."

Am I using the selector wrong?

Nicholas D'Amico
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Nicholas D'Amico
Front End Web Development Techdegree Graduate 25,692 Points

I'm not sure whats going on Leighanne, I just passed the challenge using the following code which looks exactly like your code above.

.title {
  font-size: 26px;
}
 h2 {
  font-size: 53px; 
}

2 Answers

Make sure that your code is exactly as you posted it. Often there is a small typo somewhere in the answer. You also need to place it in the right spot in the challenge.

Thank you for your help :) I don't know what the deal was but I decided to give it one more try and I pasted my answer in exactly as I had pasted it here for you guys and it took it. shrug Anyway, thanks again for the quick responses.