loading...

CSS prevent div flex from stretching child

abdullahalnoor profile image Md Abdullah al noor ・1 min read

CSS prevent div flex from stretching child

2

The moment div has the flex display property it stretches the paragraph. I seem to be missing something but no property I can think to put on the flex div changes this. How can I prevent this behavior? (without the flex property I get the result on the right in…

Discussion

pic
Editor guide