@SatyaKumar4Submitted over 1 year ago
How to centre the card div in the proper way ? Also how to decide the padding, margin required for any project ?
How to centre the card div in the proper way ? Also how to decide the padding, margin required for any project ?
Padding and margin at first seems to be a play until it works game, until eventually you'll get an eye for what looks good.
As far as centering the container, in your body element, try adding
display: flex;
height: 100vh;
align-items: center;
justify-content: center;