2 ms·
I mean, if we're going for multiple attributes anyway, this has worked since long before flexbox: On the parent: position: relative; On the element to be c
by Izkata 7y ago
I mean, if we're going for multiple attributes anyway, this has worked since long before flexbox:
On the parent:
position: relative;
On the element to be centered:
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);