1
How do I position text two below text one?
.container { width : 100%; height: 150px; background-color: red; }
.vertical-align { display : flex; align-items: center; }
<div class="container vertical-align">
<h2 class="txt-header--2">Texto one</h2>
<p class="txt-indent--2">Texto dois</p>
</div>
I had already tried and without success because it loses the vertical alignment of the middle and the text of the left. I need you to stay on the left side and in the middle being vertical.
– João Carlos
@Joãocarlos when changing the flex-Direction from Row to column vc changes the alignment axis, so beyond column vc you have to put Justify-content: center; and take the align-items to test
– hugocsl