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



create a media querie targeting screen sizes 768px or smaller and target the ".title" element and set the font-size to 1.4rem. Next target the h1 element and set the font-size to 5rem.

This is the code I have written for this challenge but it keeps rejecting it saying " you did not specify the font-size for the element .title". Any advice?

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

2 Answers

evan rost
evan rost
Courses Plus Student 13,971 Points

I just tried the code challenge with the same exact code and it passed

I knew I wasn't crazy! Thanks for thr dose of sanity man!

Kristin Kanan
Kristin Kanan
9,542 Points

I've been trying the same code for 10 minutes and it's not passing. I don't understand.