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 trialja5on
10,338 PointsI'm on:- Before You Start the Layout Project, and stuck
I'm stuck on the very first thing and i don't know what to do... I'll start at the first thing in my opinion, and that's trying to move the content of the banner into the middle. Which css property would help i tried position and float margin or padding but they don't work?
3 Answers
Daniel Riches
19,847 Pointsyou could try text-align: center
or display: flex; flex-direction: column; and then I think... justify-content: center; or align-items: center;
ja5on
10,338 PointsThanks! I had a h1 and some <p> and an img all on a banner that goes across the screen but i didn't think text-align would move it all! That's brilliant thank you, i need to be more creative..
Joe Prosser
3,546 PointsText align absolutely does move images, that's how I solved this bit anyway :)