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

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.