se vuoi centrare sia orizzontalmente che verticalmente
devi aggiungere la "position" come ha detto dyuhs
codice:
body {
background-image: url(xyz.jpg);
background-position: center center;
background-repeat: no-repeat;
}
oppure così, il risultato è lo stesso
codice:
body {
background-image: url(xyz.jpg);
background-position: 50% 50%;
background-repeat: no-repeat;
}
quello che ha detto digital00 serve a niente in questo caso
può serviti a centrare un div e neanche sempre perchè alcuni browser vogliono tutti i margin