Improved padding for headers