Deepak• 10
@Spicy-D
Submitted
how to center my entire div to the body of the webpage? i tried using display: flex property in body to center my div but it didnt work
@Nithin-droid
@Spicy-D
Submitted
how to center my entire div to the body of the webpage? i tried using display: flex property in body to center my div but it didnt work
@Nithin-droid
Posted
Hi Deepak
Have you tried using translate(). Try using below CSS in .QR-code
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);