imagine yourself doing this to center a div ! 🤣 To avoid this, here are three different ways to center a div. Therefore, you can play the teacher’s role and teach your friends how to center a div 😎 1 — using position and transform 🧘 One of the simplest ways to center a div is by…