copy margin and padding to div.