the negative edge of it is to hide the div .... Here is the trick use zoom: 1, position: relative
Here is an example
Problem:
.container{ padding: 20px; } .toolbar{ margin-top: -10px ; }
in IE, the red area of ββthe toolbar div is hidden. even we use zoom: 1. To get rid of this problem, we need to add a position: relative too.
Decision:
so your css class will become
.container{ padding: 20px; } .toolbar{ margin-top: -10px ; zoom: 1; position: relative; }
source share