Can someone explain to me why clear:both and margin-top cannot work in the same div
问题 I have already came across some explanations, including stackoverflow, but unfortunately, I still can't understand perfectly what is the cause of it. So, can someone please explain it in a simple way? Here is a question similar to what I'm asking but I didn't understand what is the cause. It fixed my problem, but I just want to know why. margin-top not working with clear: both Thanks 回答1: A margin is a minimal distance between an element and other elements in the same context. Floated