When using margin on the child element (h2) why does it give margin to the parent(#box) instead? If I change margin to padding it works as expected.
Did something change or am I missing something? here is my sample code
Fun with CSS3
also if anyone or everyone could share their experience with margin quirks. THx Are you using a doctype or did you merely omit it from your example?
以上就是CSS margin quirks - please help me understand 的详细内容,更多请关注web前端其它相关文章!