I have some problem when creating a grid of div on a page, but each cell in the grid can have different type of elements in it like <div></div> or <img/>. The grid is being generated but it is a distorted when few of the elements of the cells differ.