I would like to adjust the size of div inside parent based on the count of divs ?
For examples :
Let's say that parent size is 900px
If there is only one
divinside the parent, I would like its size100%If there are two
divinside the parent, I would like both the same size:50%If there are three
divinside the parent, I would like both the same size:33,33333%If there are four
divinside the parent, I would like both the same size:25%(...)
The maximum number of div is 4 but can be more.
Is it possible to do that only in CSS ?