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

Manda Szewczyk
Manda Szewczyk
2,382 Points

Where did I go wrong in the 2nd Media Queries Task?

I've been asked to set the h1 font size to 5rem. I submitted:

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

It says I'm wrong, and then asks if I've specified the correct font size for my h1. I'm not sure where to go from here?

2 Answers

Agnes Demes
Agnes Demes
6,613 Points

Hi, almost ther, but you are selecting the .h1 class instead of the h1 element

Manda Szewczyk
Manda Szewczyk
2,382 Points

OMG! I can't believe I didn't see that LOL! I guess I was on a roll with classes and just kept going! THANK YOU!!!!! I thought I was going crazy...I really appreciate your quick reply :)

Agnes Demes
Agnes Demes
6,613 Points

My pleasure, it is so easy to overlook little typos in your own code, sometimes it takes a fresh set of eyes.