Make a 'div' in the middle of a container
- Wang Sibo
- Mar 28, 2020
- 1 min read
you can use margin: auto to achieve this effect. However, you can not use position. I have try this.
I you truly need a positioning, you can select this syntax, transform: translateX(-50%; left :50%
Comments