A article on Tutorialzine by Danny Markov shows how to centre an object on a page, both horizontally and vertically, using CSS flexbox. And it really is simple.