DEV Community

Md Abdullah al noor
Md Abdullah al noor

Posted on

CSS prevent div flex from stretching child

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…

Top comments (0)