How to center a div - 2 Easiest and Effective way Explained

How to center a div ? Its one of most asked question from a webdev newbie or a beginner…