@harshitBhardwaj97
Posted
I saw your code and found that you wrapped the entire code inside the class design-container and in gave it height of 650px :-
.design-container {
display : flex;
align-items : center;
height : 650px;
}
You can refrain from restricting the height of parent container, and for centering the content vertically, you can use this approach :-
.design-container {
display : grid;
place-content : center;
min-height : 100vh;
}
Or you can also do :-
.design-container {
display : flex;
align-items : center;
justify-content : center;
min-height : 100vh;
}
I hope you find this suggestion helpful and it solves your problem, Happy Coding !
Marked as helpful
@Enrikewoq
Posted
VERY HELPFULL thank you sm! haha i was trying to be the most accurate possible thanks!@harshitBhardwaj97