I would need some help with something that’s been driving me crazy the past hour.
I want to center my two paragraph that’s inside a div that’s inside yet another div and being on one line each.
My CSS code looks like this:
This code aligns everything in the center both horisontally and vertically, BUT the first paragraph is inline with the second paragraph because of the ‘display:flex’ I think. And even if I do ‘flex-wrap’ they’re still inline (on desktop).
So my question is, how I can make the two paragraphs on one line each and still being centered horisontally and vertically, no matter how big the screen is. I did also try to set the width of both paragraphs to 100%, but didn’t work.
(And I want to use flexbox rules - nothing else, if possible…)
If someone can help me with this I would appreciate it a lot