How to align div horizontally and vertically center using CSS

How to align div horizontally and vertically center using CSS

Learn how to align div horizontally and vertically center using CSS position and flex layout.