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 trialjenniferquiroz
10,061 Pointsh1 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
Front End Web Development Techdegree Student 2,571 PointsIn 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) {
}
jenniferquiroz
10,061 Pointsjenniferquiroz
10,061 PointsThank you for taking the time help me! That worked!
Joel Hernandez
Front End Web Development Techdegree Student 2,571 PointsJoel Hernandez
Front End Web Development Techdegree Student 2,571 PointsYou're welcome! Have fun coding!