CSS Absolute center something

Kevin Kim
1 min readDec 24, 2019

Because I always mix up the positive and negative and transform with translate…

The proper syntax

@mixin absCenter {  position: absolute;  top: 50%;  left: 50%;  transform: translate(-50%, -50%)}

--

--