Kevin Powell - CommunityKP-C
Kevin Powell - Communityโ€ข3y agoโ€ข
11 replies
Joachim

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
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!
Frontend Mentor | Workit landing page coding challenge
Was this page helpful?