Separated margin attributes to fix IE bug

Fixed #1:
IE was not able to apply all margin attributes at the same time; I’ve
split them into each direction.