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) Enhancing the Design With CSS Media Queries

Media Query Font Size

Keep getting an error in a media query quiz where its asks to target the .title with a font size of 1.4rem and the .h1 class with a font size of 5rem. I type the sizes in accordingly to what I think is correct. I get an error only for the .h1 class' font size.

Here's my code:

@media (max-width: 768px) { .title { font-size: 1.4rem; } .h1 { font-size: 5rem; } }

2 Answers

Hi dianayee, you got it right, except that the challenge is asking to select a h1 element not a .h1 class. You just need to remove the dot in .h1 to correct the selector.

Thank you!

Totally overlooked the "element" as the keyword.