How to center my text good.

Hi guys. I want to center my text next to the image. But its not really working out. Even if i put it next to the image. What is the best way to do it? I want it like the example on the second picture https://codepen.io/Boeroe/pen/BaMoMJJ
Boeroe
CodePen
BaMoMJJ
...
No description
No description
6 Replies
Mannix
Mannix•8mo ago
Boeroe
Boeroe•8mo ago
But its not really centering that well. The text is not going underneath eachother. See the image. <div class="education-content"> <div class="content"> <div class="year"> <img src="bxl-css3.png"></div> <h3>CSS</h3> <br> <p>Front end developer work</p>

</div> .content { display: flex; align-items: center; }
No description
Mannix
Mannix•8mo ago
look at my codepen the html is different 😉
Boeroe
Boeroe•8mo ago
I see it! Thank you. To get CSS bigger then the Lorem ipsum, should i use 2 <p> and class the css one and make the font size bigger?
Mannix
Mannix•8mo ago
well then i would use your html but i would wrap the h3 and p in a div then you can style those two separately i've updated my pen
Boeroe
Boeroe•8mo ago
Thank you!