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 trialAshanti Haring
3,918 PointsWhy does the img {} declarations for the first row NOT affect all the other images in row 2 and 3?
What is it, that keeps the images in row 2 and 3 not reacting to the declarations we made in the first row?
We are targeting for example:
img { transform: rotate(45deg); } and only images in the first row rotate, second and third row not.
Why is that?
Thanks in advance!
1 Answer
Rodrigo Ferrer
8,496 PointsBecause in row 2 you are only getting the img element with the class="photo". See in row 1 it's only putting img {} as a html element and in row 2 he's putting .photo img {} getting img element from class=".photo".