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 trialTim Wilt
4,543 PointsWhy bother having left and right padding on .main-banner? If it's text-align: centered;, does it really matter?
Unless this is inclusive in one of the many things I'm still learning. Thanks either way.
1 Answer
Tony Nguyen
24,934 PointsHey,
Padding really doesn't have anything to do centering elements. Padding is used for creating more space inside the element, thus making the box bigger.
As text-align you would use that to center whichever content you have in the box.
Tim Wilt
4,543 PointsTim Wilt
4,543 PointsAh, thank you so much!! That actually really helps.