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

The header dark green background disappear in my mobile screen size after creating the 2nd media query for the "nav"

After creating the 2nd media query nav element, my desktop display is fine but the mobile version doesn't display the "greener background" anymore.

nav { background: none; float: right; font-size: 1.125em; margin-right: 5%; text-align: right; width: 45%; }

I have checked the order of my stylesheet in the index and it should be good :

<head> <meta charset="utf-8"> <title>Djimmy Alexandre | UX Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,300,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width=device-width, initial-scale:1.0"> </head>

2 Answers

It is ok, I have seen the error but thank you Fynn !

because you set background to none

Yes I know but I have just followed the video instructions and this is the way it is done..

please add your css too