Can you solve this CSS puzzle?
I have a div, known as #parentDiv, that is absolutely positioned and has a width of 100%.
Inside #parentDiv, I want to place 'n' number of child divs evenly spaced out within the parent div.
If there's only one div, let's call it #childDiv1, it should completely fill the screen with its color.
For two divs, #childDiv1 and #childDiv2, they should each take up half of the screen horizontally with their respective colors.
All child divs must have identical CSS properties for future manipulation using jQuery. The goal is for new child divs to dynamically fit into the parent div without any issues.
Your assistance on this matter would be highly valued!