how to center an item without flex

Solutions on MaxInterview for how to center an item without flex by the best coders in the world

showing results for - "how to center an item without flex"
Kenna
01 Nov 2017
1.container{
2position: relative;
3}
4.child{
5position: absolute;
6top: 50%;
7left: 50%;
8transform: translate(-50%, 50%);
9}