Trouble with CSS is still this: https://media.giphy.com/media/yYSSBtDgbbRzq/giphy.gif
(Peter Griffin trying CSS)
And centering a div can still be very hard depending on the circumstances.
And centering a div can still be very hard depending on the circumstances.
You can center anything by making the container display:grid; align-content:center; justify-content:center; I don't know of any situations where that wouldn't work. Flex is a bit finnickier to understand with its major/cross axis concept and wrapping, but you can write Grid layouts with your eyes closed.
> centering a div can still be very hard depending on the circumstances.
Only thing i could think is targeting ancient browsers. I'm curious, do other UI languages not have quirks or edge cases to learn?
Are the circumstances that you are banned from using flex or grid?