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 trialRussell Scarfi
1,216 PointsTrouble adding breakpoint for HTML code challenge
@media screen and (max-width: 480px) { h1 { font-size: 2.5em; } }
I believe this is the correct code for the task but it does not work. The prior video does not seem to offer the solution. This code, I believe, should be in the file "Responsive.css". However, the file "css/main.css" is provided for the task. Not sure what to do here.
2 Answers
jason chan
31,009 Points@media (min-width: 480px){
h1 {
font-size: 2.5em;
}
}
@media (min-width: 660px) {
h2 {
font-size: 1.75em;
There is no and. Be very careful of typos.
Nikhil Rai
15,391 Pointstry this
@media screen and (min-width: 480px) {
h1 {
font-size: 2.5em;
}
}