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 Adding Breakpoints for Devices

Austin Smith
Austin Smith
1,384 Points

My page wont format correctly

I've followed along with the video perfectly, and when i resize the page, it will change to the navy color about a quarter of the way full, but will never turn dark green. It'll stay the navy color at the full screen. Any idea's why? My responsive.css file looks exactly like what is shown in the video and i have pasted it below main.css on every html page.

2 Answers

Can you post your code. Here or linked to codepen. In many cases it's simply forgetting to add a closing tag or ending your css with a ;. Double check to see if your not using : instead of ; or that your closing brackets are correctly placed in your css. Your code may look the same but like I said many times it's something silly like this. I have done this many times myself.

Austin Smith
Austin Smith
1,384 Points

Thank you for the swift response. As with many computer-related issues, the problem was solved simply by closing the page and opening it anew. I did try refreshing the page several times before, so I'm unsure why it didn't correct itself then, but the point is that it's fixed now. Again, thanks.

Great to hear. That has happened to me before sometimes I forget to save before refreshing the page or I save and it takes a little to update.