Centering Pseudo ( ::before, ::after ) Elements Content
If you would like to centre your CSS pseudo-elements ( ::before or ::after ) horizontally or vertically then I hope it is the perfect solution for you. My formula is simple – Now let me explain- 100% = Calculate the width of the full section50% = Minus 50% from leftWidth = Pseudo-element width divided by…