update margin for code block