Resizing the margin based on the header height.