0
Which is the best way to align item center (Vertically and Horizontally) ?
.parent { position: relative; } .child { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
1 Answer
+ 1
https://css-tricks.com/centering-css-complete-guide/
found this usefull