Reputation: 13
Click here to view the page in question.
Is there a way to make the divs line up in a dynamic grid? Meaning they always are equidistant to eachother, no matter how much their height is?
Upvotes: 0
Views: 976
Reputation: 9402
I'm not sure if i understood your question correctly, but if i did you're trying to understand how to create a grid of objects (such as a table).
You would usually have a wrapper div to define the the width of the "restriction" , and inside it place elements that are all "floating" to the left, and in that way, they will collapse to the next row when there is no more room. (There is no problem in changing any of the element's height to something different than 100px, and they would still be attached to each other by float)
You can see a sample in the following link: http://jsfiddle.net/UkBFr/1/
Shai.
Upvotes: 1