@MohtashimAli85
Posted
I think you are not resetting the CSS. Add reset css. This should be enough
*{ margin:0; padding:0; box-sizing:border-box; }
Also try to center the card component. using hard values of margin is not a good approach. You can use display flex or position absolute and when there is a single component on your page give body hieght of 100vh when using display flex so that it can take all the space then centering component will be easy.
body{ position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
And remove margin-top for card class.
Hope it helps ^^.
Marked as helpful