The case "margin: 0px" is imported only as margin-top. This results in spacing-after property of the paragraph to have an incorrect value. There is a possible workaround if you have control over the construction of the HTML. Change the "margin: 0px" to "margin: 0px 0px 0px 0px"