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

Online Registration form - Media Queries

I made the adjustments for the overall width of the mobile layout, it broke some of the layouts of the inputs. The input widths I have for the mobile view combined with not giving the labels a set width until after the media query are causing some unintended jumping of the page and unpredictable moving of the labels from above the input. I adjusted the input lengths from 60% to 90% around.

/* Media Queries */

@media only screen and (min-width:768px) {

top-banner {

width: 100%;

}

div {

overflow: auto;

}

wrapper {

width: 550px;

}

contact label {

width: 150px;
display: inline-block;

}

contact input {

display: inline-block;

}

zip {

width: 150px !important;

}

any LIVE PREW is availble ? use codepen.io for example

Steven Parker
Steven Parker
243,656 Points

When posting code, use the instructions for code formatting in the Markdown Cheatsheet pop-up below the "Add an Answer" area. :arrow_heading_down:   Or watch this video on code formatting.

1 Answer

Try overflow: hidden instead of auto. Reply back so I can walk your through this issue. Try it with your changes and try it with your original code before you adjusted it.