tag nested in the divs Definition and Usage. So, what happened here? Hi all, I'm trying to vertically align text in a box that has a height that changes to match the width (so that it's a perfect square). Hi, You were close . I've been working on getting the text in my content div centered vertically and I'm stumped. This method allows you to vertically align multiple lines of text on fixed height boxes or expandable boxes by height. I'm trying to center a text inside a p tag within a div tag. V-align text under image above div border vertical align text inside div container Save to Google Drive.