How to Center a Div with CSS – 10 Different Ways
As a web developer, sometimes centering a div feels like one of the toughest jobs on planet Earth. Well, not anymore. In this article, you'll learn 10 different ways to center a div. We will explore how to center divs using the CSS position property, CSS Flexbox,
freecodecamp.org