Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Unused CSS Stages Media Queries Media Features and Media Types

Felix Wahlberg
Felix Wahlberg
11,672 Points

Is there an error with the last challenge, I have gone through it over and over and I can not see what I have done wrong

Am I just being and idiot?

index.html
<!DOCTYPE html>
<html>
<head>
    <title>Media Queries</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="wrap">
        <h1>Hi There!</h1>
        <p>
            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi lectus ante, luctus vel euismod ut, suscipit quis ligula. Vestibulum augue ante, semper sit amet congue non, faucibus sit amet lacus.
        </p>
        <p>
            Maecenas lobortis porttitor nisi, quis congue neque porta at. Donec interdum arcu eu ante semper nec venenatis ipsum dignissim. Vestibulum ultricies mi quis lectus suscipit fermentum.
        </p>
    </div>
</body>
</html>
style.css
/* Complete the challenge by writing CSS below */
@media screen and (max-width:768px) {
    body{
    background:#FF6347;
    color:white;
    }
}
@media screen and (max-width:480px) {

body{
    background:#4682B4; 
}
@media screen and (max-width: 800px) {
    .wrap{
        width:700px;
    }
}

3 Answers

Jessica H
Jessica H
16,607 Points

On index anyway put a slash in front of page.css and style.css

I don't want if that will help because I'm not sure exactly the nature of your error.

you didnt close the second media query tag, so you have two media queries merging one in an others

thanks ;) !