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 CSS Basics (2014) Enhancing the Design With CSS Adjusting the Layout with Media Queries

h1 Header "breaking" into three lines

Viewing my web page via Google's Dev Tools, I noticed that when the viewport is narrowed to the iPhone 5 display, my "Lake Tahoe, California" header is now breaking into three separate lines and the .intro overlaps "California". Help! http://cdpn.io/yNdyYb

1 Answer

Joel Hernandez
seal-mask
.a{fill-rule:evenodd;}techdegree
Joel Hernandez
Front End Web Development Techdegree Student 2,571 Points

In your second media-query you are targeting a MAX-WIDTH of 768px instead of MIN-WIDTH. You want to target a minimum width because once the browser goes below that minimum value it will break and apply the code in the code block.

For reference the code should be:

@media (min-width: 768px) { 

}

Thank you for taking the time help me! That worked!