Update margin for pre