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.

CSS

Cannot Center twitter and facebook logos in footer

I am attempting to make a website just for practice for now, but I have ran into a problem with the footer of my code. I want to center the twitter and facebook logo images just above the copyright logo, but when putting in the code it DOES move, but it is not perfectly centered, and when I add padding, that just messes up the other things on the webpage. it seems that I cannot add an image in the question or at least I do not know how to but here is some code.

footer { font-size: 0.75em; clear: both; padding-top: 50px; color: #ccc; text-align: center; }

footer h3 { text-align: left; float: left; }

footer nav ul { text-align: right; }

footer nav ul li { display: inline-block; }

footer nav a { text-align: center; }

footer p { text-align: center; }

.social-icon { width: 20px; height: 20px; margin: 0 5px; }

Craig Garrity
Craig Garrity
23,692 Points

Hi Hanna,

Unless you have already solved the issue, would you be able to post up the HTML markup alongside the CSS. It maybe a syntax issue/missing bracket etc, but if you post the full HTML and CSS we can take a look and debug with you.