0
What is the correct way to center 3 divs vertically and horizontally in a div?
What is the correct way to center 3 divs in a div?
2 odpowiedzi
+ 5
Hope this helps :
https://code.sololearn.com/WewcrAlN1m8k/?ref=app
+ 2
the container should have the following css values:
.container{
width:/*width of container*/
display:flex;
align-items:center;
justify-content:center;
}
if you want to vertically align use:
flex-direction:column;