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
Scott Moore
4,050 PointsAlign a div within a div vertically
Hey all, doing some playing around again. Starting to get a hang of some of this CSS stuff. Here's what I am trying to do. Align a div within a div vertically. This is snippet im playing with.http://cdpn.io/gDFsa As you can see I have the div aligned using the margintop scenario. Which works. I have also tried using the tablecell scenario in the parent Div with verticalalign, but when testing this in the browser the cell collapses. What am I missing? Thanks
2 Answers
sanjana porwal
4,080 Pointshttp://cdpn.io/gDFsa Please check if this answers your query.
Scott Moore
4,050 PointsHey Sanjana, Sorry so long on response. So looking back it doesn't appear I see the results you typed in with codepen. The link is taking me to the original document I created. Thanks