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 trialpgmd
6,897 PointsCorrection on this lesson
I corrected what seems to be an error on this lesson (https://teamtreehouse.com/library/css-layout-techniques/float-layout/mobile-first-layout). When coding for mobile sites, it would want to get rid of the ul decorations and left padding. So I added the following:
ul[class="main-nav"] { padding: 0; list-style-type: none; }
Correct?
3 Answers
David Tonge
Courses Plus Student 45,640 PointsI'm not too sure what exercise you're referencing, but you're using an attribute selector in place of a class selector. ".main-nav ul"
pgmd
6,897 PointsYes, I needed to target main-nav within ul . which solved the issue. Be well.
pgmd
6,897 PointsYes, I needed to target main-nav within ul . which solved the issue. Be well.