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%); }

28th Aug 2018, 11:18 AM
bit_byte
bit_byte - avatar
1 Respuesta
28th Aug 2018, 11:20 AM
bit_byte
bit_byte - avatar