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.

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