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 trialDylan Carter
4,780 Pointsfor the logos, difference between using 2 classes instead of selecting whole footer?
Okay so we made the twitter and facebook icons 20px by defining a class, which made each logo that size.
Mr. Nick was saying we could have selected the whole footer instead, but if we did this wouldn't it make the entire footer the size we say, or will it still be the same deal as the classes.
1 Answer
Andrew Jackson
5,633 PointsIn this example, if you were to use an element selector (footer) to customize the icons, you will also need to specify the child element(s) that contain the icons, which are the actual <img> tags/elements.
So it would look like this:
footer img {
width: 20px;
height: 20px;
}
You could also go into even more detail:
footer a img {
width: 20px;
height: 20px;
}