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
Yanwolf Hoffmann
1,230 Pointsbug? Code Challenge: Media Queries
Hi,
I'm experiencing and issue on the last CSS Basic Challenge Task. I set the correct font-size for the h1 element, but when I click to check the work it says the font size is not correct.
The code is looking like this:
```@media (max-width: 1020px) { .main-header { background: tomato; color: white; } }
@media (max-width: 768px) { .title { font-size: 1.4rem; } .h1 { font-size: 5rem; } }```
Am I wrong or is this a bug?
Screenshot: https://s1.postimg.org/3mtc3um0db/tree_house.png
1 Answer
Brian Jensen
Treehouse StaffI believe the error is with the h1. As the h1 tag is an element it does not need the class selector period before it. So if you change .h1 to h1 your code should pass, as everything else you have done is perfect.