Adaptive header margins