Software Developer
Markdown supported · ⌘↵ to post
I always tend to forget the process to center divs 🤣 Good for me! Thanks for this article Katherine Peterson
.outer-div { display: flex; justify-content: center; align-items: center; }
it is the best way instead of position
Savio Martin
I have used them all, flexbox is my favorite
.flex{ display: flex; justify-content: center; align-items: center; }I usually build a separate class with flexbox and reuse the same class in places I need flexbox 🙌