@nmnjnklc
Posted
Hello @AldoRdz2001,
I think the easiest way to center a div (or any element) is to set the following properties to its parent element. For this particular situation:
body { height: 100vh; display: flex; align-items: center; justify-content: center; }
Hope this helps.
Stay safe and happy coding!
Marked as helpful
@AldoRdz2001
Posted
@nmnjnklc Thank you for your comment, i save this for the next project