Show post as row or grid in WordPress front page.

How to Display Your WordPress Posts in a Grid Layout