Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
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 Antwort
+ 1
https://css-tricks.com/centering-css-complete-guide/
found this usefull