A simple way of making your table appear in the center on the screen is by setting:

margin: 0 auto;

Don't use margin-right:50% because that would set the LEFT corner of the table to 50% of the screen and not the center. It is a longer "mathematical" procedure that way. Rather stick to margin:0 auto; in your style sheet. It will automatically place it at the center of the screen