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 trialAriel Espinal
5,451 PointsWrong anchor element being used at 6:30min mark?
The video at around 6:10 says that we need to put an anchor element to adjust the images for our contact info. However, it should be a list element instead // .contact-info li {}
1 Answer
Jason Anello
Courses Plus Student 94,610 PointsHi Ariel,
It's correct to use .contact-info a
. The goal here was to have the icons be clickable as well, not just the text.
By applying the 30px of left padding to the anchor elements you're able to create 30px of space to the left of the text which is also part of the clickable area for the link. Then by placing the icons in that space they will appear to be clickable along with the text.