factored out center-padding into util