text-align vs align-self
Hi
I'm playing arround with flex on the project workit landing page from frontendmentor and tried to center the text from the reason section, within the flex container, but that doesn't seem to work it goes good with the titles, but not with the text..?
I have applied text-align on the p and now it is centred, but why is that behavior?
my codepen (with notes for make it more clear)
https://www.frontendmentor.io/challenges/workit-landing-page-2fYnyle5lu
https://codepen.io/joachim-Claessens-the-lessful/pen/OJagbXB
I'm playing arround with flex on the project workit landing page from frontendmentor and tried to center the text from the reason section, within the flex container, but that doesn't seem to work it goes good with the titles, but not with the text..?
I have applied text-align on the p and now it is centred, but why is that behavior?
my codepen (with notes for make it more clear)
https://www.frontendmentor.io/challenges/workit-landing-page-2fYnyle5lu
https://codepen.io/joachim-Claessens-the-lessful/pen/OJagbXB
Frontend Mentor
This HTML and CSS-only landing page will be an excellent test of your UI and responsive skills. Thereโs also some fun to be had creating the curved section borders!


