How to align a div within a div in cener (CSS)

How to align a div within a div in cener (CSS)

If you want to center align a div in a page, it can be achieved by putting the div inside another div (for example, by creating a new outer div.) And then, applying the following css code snippet will align the inner div in center. #out { width: 100%; text-align:...