@iberberoglu
Posted
Hey PJ 👋
I've just reviewed your code and noticed that you centered the section using 'padding', but it creates scrolling on screens with larger heights. If you want it to stay fixed in the middle of the screen without create scrolling; instead of using padding: 10em;
on the body element, try using :
height: 100vh;
margin: 0;
and use align-items: center;
with flex to center the section perfectly. Give this solution a try!
Additionally, if you're not familiar with 'vh', I recommend checking out a few links I'll provide you to learn more about it.
Apart from that, great job on the code!
Marked as helpful
@Kitezh1
Posted
Thank you İsmail! This was really helpful, going to give vh a look. @iberberoglu