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
6 Replies
flexbox 🙂 https://codepen.io/MannixMD/pen/YzBygzr
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; }
</div> .content { display: flex; align-items: center; }
look at my codepen the html is different 😉
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?
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 penThank you!