Centering A Page With CSS

A popular book on designing with CSS recommends centering a page by using a container with a negative margin. I have seen other sources that recommend such a technique, with code similar to the following:

#wrapper {
position: absolute;
left: 50%;
width: 760px;
margin-left: -380px;
text-align: left;
}

I have seen examples of problems caused by negative margins, and CSS experts whose opinions I respect recommend centering a page with code similar to the following:

#wrapper {
position: relative;
margin: 0 auto;
width: 760px;
text-align:left;
}