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

HTML How to Make a Website Responsive Web Design and Testing Refactor the Layout

Courtney Novits
Courtney Novits
3,113 Points

Mods, please delete this post - I no longer need assistance

Thank you

Hi Courtney,

You should leave your original title and question intact so future users can benefit. The forums are here for you to get help but also to build up a repository of questions and answers for future users to benefit from as well.

1 Answer

Michael Collins
Michael Collins
433 Points

You could try the CSS3 nth-child selector. NOTE: this is CSS3 and this particular item is only supported in IE with versions 9 and greater.

Here's some generic code. If you post some of your own code samples I might be able to provide something more specific.

@media screen and (max-width: 480px) {

  li:nth-child(4) {
    css-property: css-value

   }

}