Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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?