make sure padding is added at right pixel width