fix for padding-bottom and header/footer placement