Syed Jafer Kparottasalna.hashnode.dev·Nov 26, 2023Ways to center a div ?1. Using Flex Box .parent { display: flex; justify-content: center; align-items: center; } 2. Using Margin .child { margin: auto; } 3. Using Grid .parent { display: grid; place-content: center; } 4. Using Positions .parent { ...DeveloperAdd a thoughtful commentNo comments yetBe the first to start the conversation.