I have 16 divs in my page and every div has a cross button on top right, on click of cross button that div should be hidden and the div which is next to hidden div should be re positioned, for example suppose we have 5 div1 2 3 4 5suppose 3 is crossed the sequence should be like 1 2 4 5.there is one more button in divs which is like button, onclick of that button, that div should come to position 1 for example we have 10 divs like :1 2 3 4 56 7 8 9 0say 8 is liked then layout should be like:8 1 2 3 4 5 6 7 9 0