[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

08/21/2008 at 02:48PM PDT, ID: 23668619 | Points: 125
[x]
Attachment Details

How do I give my Div container a force of gravity

Asked by mccainz2 in Cascading Style Sheets (CSS)

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)
Attachments:
 
Div with gravity
Div with gravity
 
[+][-]08/21/08 02:54 PM, ID: 22284679

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/21/08 05:24 PM, ID: 22285442

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/21/08 06:10 PM, ID: 22285617

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 / EE_QW_EXPERT_20070906