I am trying to create a layout where div
floats like this
==== ====
XX XX
==== ==== ====
XX
====
==== ====
XX xx
==== ==== ====
XX
====
What i want is to float div
like this and animate them in loop from right to left.
The problem is i am unable to figure out a way to align them properly. These divs
aren't limited they are lots of divs
.
What i have tried
div{
position:relative;
}
.div:nth-child(odd){
left:10%;
top:10%;
}
.div:nth-child(even){
bottom:10%;
right:10%;
}
I tried absolute & relative
positioning and in both of them they are overlapping the divs. I want to that in a way so they do not overlap each other