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 CSS Selectors Advanced Selectors :nth Pseudo-Class Challenge

Sean Brazzi
Sean Brazzi
4,952 Points

having an issue passing code challenge with media query

the challenge is saying to create a new rule that will target the img selector and float all images on the page left, the error I keep getting says that im not floating the images to the left.

hears the code I was using

@media (min-width: 607px) {
  .img{
       float:left;
     }
}
Ken Alger
Ken Alger
Treehouse Teacher

Sean;

Can you post the code you are trying? It will help quite a bit in working out a solution for you.

Thanks,
Ken

Sean Brazzi
Sean Brazzi
4,952 Points

sorry I thought I attached the code, I updated the question but it put the code in a strait line making it a bit hard to read sorry

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Sean;

You need to target the image elements, not img classes.

Ken

Sean Brazzi
Sean Brazzi
4,952 Points

thank you for your help, it fixed the issue I was having