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.

benwoodruff
3,204 PointsNot sure how to solve this
I've tried several times on this and still can't seem to get it to pass. Following is the code and question:
Open a scope on an <ul> with the ID menu. Inside that, open a scope on a <li>element. Using Sass nesting, add a media query so that the <li> elements will have an attribute of text-align: center when the media is screen and the<li> has a max-width of 500px.
/* Write your SCSS code below. */
@media screen and (orientation: landscape){ img { width: 360px; } }
.menu li{ @media screen and (max-width: 500px){ li{text-align: center;} } }
2 Answers

Sean T. Unwin
28,686 PointsYou used the class operator instead of the id operator - .menu
should be #menu

Sean T. Unwin
28,686 PointsYou don't need to repeat the li
in the media query as you're already in the scope for that li
.

benwoodruff
3,204 Pointswhen I remove the li like this : .menu li{ @media screen and (max-width: 500px){ text-align: center; } }
it fails and tells me I need to "select 'li' tags within the 'ul' that has an ID of '#menu'. Set their text-align property to center."
benwoodruff
3,204 Pointsbenwoodruff
3,204 PointsI feel like a big idiot... Thanks Sean