Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

How can I make gap between parent and child or each childs same?

$
0
0

I want to create a flexbox component that spacing between each child components and the spacing between parent and child are all the same. It's similar to 'space-evenly' but i don't want to use static height value in flexbox. How can I create this flexbox?

<Col>  {/* child components */}</Col>

enter image description here

I tried 'gap' property to make it but it doesn't contain space between parent component and child component.I also tried 'space-evenly' option in 'justify-content' property but it doesn't have any space unless i put a static value of height.What should I do for spacing evenly and automatically adjusting height as child component's height at the same time?


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>