Faisal Ahmed• 410
@faisalahmed11
Posted
Hi there, I checked you code, you just need to add the below styles .container{ display: flex; align-items:center; justify-content:center;
}
and then there will be no need for below styles.
top: 50%; left: 50%; transform: translate(-50%, -50%);
HOPE YOU WILL FIND THIS HELPFUL.
HAVE A NICE CODING.
Marked as helpful
2