This page renders differently in Firefox and Chrome.
Code
<p style="border: solid 1px red">Test test</p>
<p style="border: solid 1px red">Test test</p>
<p style="border: solid 1px red">Test test</p>
<div style="margin-bottom: 1em; overflow: auto;"></div>
<p style="border: solid 1px red">Test test</p>
<p style="border: solid 1px red">Test test</p>
<p style="border: solid 1px red">Test test</p>
Firefox, Opera, Internet Explorer
Chrome
Questions
- Who is right? Firefox or Chrome?
- When does it happen exactly? For example if I add
padding: 1px
then suddenly Chrome will add the bottom margin too. Same thing if I add something (anything) in the div contents. - Is there any CSS/Javascript hack to make both browsers display it the same without modifying the HTML?