Web development
fromCSS-Tricks
12 hours agoYet Another Way to Center an (Absolute) Element | CSS-Tricks
Absolutely-positioned elements can be centered using `place-self: center` with `inset: 0` in three lines of CSS, replacing the traditional `top: 50%; left: 50%; translate: -50% -50%` method.