Given a a parent div which will contain many child divs at various locations, how do I give the parent Div a CSS "gravity" ?
I'd like the force of "gravity" in the parent container to come from its left side (normally the Y axis so to speak). That way when I position a child inside the container I will give it a fixed Y position and then I would want the child to fall toward the left side of the container until it hit the container or another child (Falling along the X axis so to speak).
I'd also like the parent container to be able to grow in width as the children stack up inside of it. I'm very new to CSS so please be gentle and If my question is too vague please say so and I will gladly elaborate. (See attached image)
Start Free Trial