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 trialDerek Derek
8,744 PointsLinks on Contact page
It looks like the links on the Contact page do not end where the letters end. For example, on the row where I placed my Facebook link, I can click the center of the page (empty space) and my mouse still hovers the link and if I click the empty space, I get transported to my Facebook page. How do I fix it so that I can only click the letters to be directed to the page?
3 Answers
Manuel A. Martinez
10,919 PointsHi there;
I changed the display setting for the .contact-info a element from block to inline-block and this resolved your issue.
I have copied my css code below.
.contact-info a {
display: inline-block;
min-height: 20px;
background-repeat: no-repeat;
background-size: 20px 20px;
padding: 0 0 0 30px;
margin: 0 0 10px;
}
george george
5,755 Points <a href="your link">Text Link</a>
Colton Shaw
12,634 PointsMine go all the way across also. Any ideas?
Codin - Codesmite
8,600 PointsCodin - Codesmite
8,600 PointsCan you paste your code here so we can check what might be wrong.