Why the item doesn't want to line up in the center?

April 4th 20 at 00:59
2 answers
April 4th 20 at 01:01
Because the container height is not fixed. Put a specific height value. 100vh for example.
April 4th 20 at 01:03
Or set the container height in wh, or ask for body min-height 100%

Find more questions by tags CSS