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
Kristin Wastney
254 PointsResponsive design not working
As I increase the size of my screen automatically my navigation does not move to be right aligned. I have to refresh the page in order to make it work.
Kristin Wastney
254 PointsThanks Justin! What is the best way for me to post my code? (I'm a rookie!). I've been working on the 'how to build a website' track. I've been building my own site though based on the one you get taught in the track.
Kristin Wastney
254 PointsAwesome thanks! So I've attempted to put my code into codepen. You'll see the code at the bottom of the css that I'm using to adjust the layout for responsive design. As I mentioned though as I increase my screen I have to refresh to make the nav sit right aligned.
Justin Horner
Treehouse Guest TeacherHello Kristin,
I'm researching your issue now. I think I'm on to something, but I'd like to know what browser you are testing the site with? Have you tried more than one browser? So far I have noticed that Chrome is having the most abnormal effect but in IE and Safari it seems to be behaving more like your expectation, I believe.
John Reed
12,911 PointsSo looking at the code real fast none of your images are floated or have any sort of width & height specified at that media query. When you float something it takes it out of the normal flow of the document.
A quick fix that I used that worked in Chrome & Firefox would be the following.
''' @media screen and (min-width: 750px) { /HEADER/
header { height: 150px; }
.logo, .line-image { float: left; }
nav { float: right; margin-left:-120px; padding-top:100px; } } '''
Justin Horner
Treehouse Guest TeacherJustin Horner
Treehouse Guest TeacherHello Kristin,
In order to help us find the problem please consider posting your code. If you're working on a particular course, please let us know which one.
Thanks!