css - Make a float div shift div in another-container when collide -
two columns of boxes, , sometimes, left-column boxes can larger column, , have move down rigth-column boxes avoid collision. boxes of right or left column can contained or not, don't know # of larger box. can floated, block or inline, etc.
i have this:
i want this:
is somehow possible css only?
jsfiddle (first screenshots)
thanks!
got it! setting greens inline-block
, float: left
on blues (and not parents) works expected. no js ;)
jsfiddle (i inverted blue , green in attemps)
Comments
Post a Comment