I saw a similar comment on HN recently that CSS was "better" back in the day and what we have today is either unnecessary or too hard.
I reminded that person we had to use floats and positioning hacks and abuse HTML tables for page layout before flexbox and CSS Grid were created.
There was no way simple method to center a div!