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
Cristiano Porto
5,850 PointsHow to vertically center/align a div in html/css?
I come across this issue many types through different projects. It seems like there's no real answer out there. I know how to horizontally center a div , using different methods such as margin: 0 auto; text-align and others.... But when it comes to having a text or div centered many times I also want it to be centered vertically. How would I go about that?
1 Answer
Barry Ort
12,373 PointsHere's a good guide (https://css-tricks.com/centering-css-complete-guide/)