Emran Ibrahim• 30
@ServalFake
Submitted
I'm not quite sure if using position relative and eyeballing it is the best way to center it, if anyone uses something more reliable please let me know
@pantherdox
@ServalFake
Submitted
I'm not quite sure if using position relative and eyeballing it is the best way to center it, if anyone uses something more reliable please let me know
@pantherdox
Posted
if you are a newbie developer, then this project is well enough crafted by you and you deserve appreciation for the effort you put on this project. As i can see you are still not good with position properties, try to practice flexbox and grid. To center this use: body{ display: flex; justify-content: center; align-items: center; min-height: 100vh; }
or
body{ display: grid; place-content: center; min-height: 100vh; }
Marked as helpful