Category
CSS
Centering in CSS: The Eternal Struggle (and the Trick That Saved Me)
The left: 50% + translateX(-50%) trick, why it works, and when you should just use flexbox or grid instead.
The left: 50% + translateX(-50%) trick, why it works, and when you should just use flexbox or grid instead.