Se non ho capito male, devi mettere il margin nel css:

margin: 0 auto;