News for hackers. Stuff that matters.
Re:How to center a div in CSS by cfj on Tuesday February 13, 2024 @02:51PM (#39362007)
I'm just as lazy as you, but I just wanted to point out that you can create a new stacking context explicitly with

isolation: isolate;

Re:How to center a div in CSS by allannienhuis on Wednesday February 14, 2024 @12:13AM (#39366748)
oh, great tip - thanks! That's much more explicit. The other approaches have the new stacking context as almost a side effect.