1
I have this code. I want the text to stay centered on the div, but with the alignment on the left. I put a text-align:left, but the text is still centered.
<div style="
width:1000px;
height:400px;
background:red;
display:flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: left;"
>
<h1>Texto 1</h1>
<h2>Lorem ipsum dolor sit amet</h2>
</div>
I edited the question. if you take the align-items the content will not get more centered.
– Heber Leonard
@Heberleonard Now yes. Edited, explained and working
– Evilmaax