I've always read and heard things like:
- "CSS positioning is difficult"
- "CSS works like a black box. It's not clear how it works."
In my humble opinion, that's not the way it is.
CSS is an amazing tool to build not just "web pages", but beautiful user experiences.
My humble advice if you think that way is to study how it works:
Learn the box model and how the HTML elements flow in the layout.
Read about how the properties display, position, width, height, transform, float, and other properties work alone and in combination with other ones.
Read about Flexbox, Grid, and both of them working together.
After that, you are at risk to start loving CSS. And if that doesn't happen, at least you'll be able to understand how to center elements, why an element is positioned in a certain way, or why
"Damned! height: 100%; is not working".