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

HTML How to Make a Website Responsive Web Design and Testing Write CSS Media Queries

adding breakpoints for devices code challenge problem

I'm taking the Code Challenge in the "Breakpoints for Devices" lesson in the "How to Build a Website" tutorial. I apparently got the width part correct because the error message I got was something like "Did you forget to set the font-size to 2.5em?". I can't seem to get the right answer. I've tried numerous times. Can someone please offer some help.

2 Answers

Hi Gary, you need to put your code at the end of the code editor, leaving what is already there. I tested the code using Chrome, seems to be working.

It worked! And I had no problem with the second half of the town. Thanks! I was really getting frustrated. I wish the instructor had mentioned that it is important where breakpoints are set, although I suspected it was any way.

P S I also tried adding this rule to the project we are writing for this lesson and it worked there.

Hi Gary,

I answered a similar question for the same challenge before, take a look, maybe will help:

Why does the h1 font size work, and the h2 does not?

I went to thread you showed and tried the code section but, it didn't work for me. I can't figure out what I'm doing wrong. Does it where this code is placed? Thank you for your help.