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 trialbrandonlind2
7,823 PointsWhy is text-align center used to center a footer?
Why is text-align: center used to center a footer when a footer isnt text, but a block element? logically shouldn't (text-align) align well, text. If I look up the text align it says its used to center texts, so I'm a bit confused.
2 Answers
Bryce Santos
11,157 PointsYou're positioning what's in the footer, which consists of text usually. So if you have, let's say a "p" tag inside the footer, you'd be using the text-align on the p tag within the footer.
Bryce Santos
11,157 PointsYep, you'd still use text-align. Think of it as microsoft word, and it's just justifying left, center, and right. This includes text and images.
brandonlind2
7,823 Pointsbrandonlind2
7,823 PointsWhat if its a facebook icon?