Latest solutions
Latest comments
- @Saad-Hisham@Emperor-Shadow
Amazing as always
- @Saad-Hisham@Emperor-Shadow
cool man. cool
- @Saad-Hisham@Emperor-Shadow
fucking lovely. i love this
- @Romina-Bonetto@Emperor-Shadow
When you use flexbox, you have to set the body's height to 100% of the viewport height Then the align items and justify content will work Just like this
body { height: 100vh; display: flex; justify-content: center; align-items: center; }
And justify content is to center it horizontally whilst align items is to center it vertical. I wish you all the best Happy coding
Marked as helpful