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 trial

HTML How to Make a Website Responsive Web Design and Testing Responsive Web Design

Derek Derek
Derek Derek
8,744 Points

Links 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?

Codin - Codesmite
Codin - Codesmite
8,600 Points

Can you paste your code here so we can check what might be wrong.

3 Answers

Hi 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;
}
          <a href="your link">Text Link</a>

Mine go all the way across also. Any ideas?