CSS margins causing vertical movement onclick