(The example is taken from Google’s CSS walkthrough)
BTW, I tried to make this pass validation, but I couldn’t get jsbin to put a type attribute on the <script> tag.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think it’s this collapsing margin bug.
Changing the CSS to:
seems to fix it (and for me confirms it’s the
margin-topCSS as mentioned in the bug report). However, you lose the margin on all the<div>s which isn’t desired.To fix that, I then added:
to put it back on the first one and it renders the same in both browsers.