event change margin and padding