Aline Sanches• 10
@sanchesaline6
Submitted
What other CSS properties should I have used to center my divs? Was there a correct semantic markup I could've used despite of the divs tags I used?
@MadsenBK
@sanchesaline6
Submitted
What other CSS properties should I have used to center my divs? Was there a correct semantic markup I could've used despite of the divs tags I used?
@MadsenBK
Posted
I found this code on stackoverflow after I did this challenge but it has helped me centering my projects. Try adding this to your '.qr-container' in your css:
position: absolute;
top:0;
bottom: 0;
left: 0;
right: 0;
You can find the post here if you need: https://stackoverflow.com/questions/356809/best-way-to-center-a-div-on-a-page-vertically-and-horizontally
I hope it helps :-D.