efit function marginAndPadding