@MelvinAguilar
Posted
Hello there π. Good job on completing the challenge !
I have only one suggestion about your code that might interest you.
-
You can use the following styles to center the element effectively using either of these two methods: For Grid:
body { min-height: 100vh; display: grid; place-items: center; /* Additional styles if needed */ }
For Flexbox:
body { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; /* Additional styles if needed */ }
Later, you can remove this margin:
main, footer { /* margin: 6vh auto; */ }
I hope you find it useful! π
Happy coding
Marked as helpful
@rame0033
Posted
@MelvinAguilar thank you for this tip. Honestly, didn't know this since we're using margin all the time during our class.
Really appreciate this wonderful tip π