When I started upgrading my knowledge in HTML or say from Table to Divs I had experienced on finding some solutions on how to handle the DIV on the page, here are some issue and found solutions.

* Set the DIV to automatically adjust its size for the content which is the same behavior with table.

  Solution:  Add this style;    display: table-cell;