the best suggestion I can give you is position:absolute. this is the one that is guaranteed to always keep your content in the center of the page.
.card{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
checkout this video for more info on the position attribute: https://www.youtube.com/watch?v=P6UgYq3J3Qs
@shubhanginisharma627
Posted
Thanks, I will try it