Forum Moderators: open
Also, if I can't center with margin: 0 auto, can I possibly do width=80% text-align=center with a <div>?
Would using width:80% and text-align:center with a <div> be a possibility?text-align:center would align the contents of the div in the center so IF this is the div that contains the contents of the page, then it could align the page in the center, but every element inside the center aligned div would need to be text-aligned left or right if the entire page's contents were not wanted to display as centered.
The Doctype is htmlThat is used for html5 which should handle margin: 0 auto; just fine, but as in any doctype, if there are any other errors on the page it will throw some browsers into Quirks Mode, then things get out of hand and browsers handle things in different ways (especially IE's older versions). A piece of older code pasted into a new document is an example, such as a table with a border style inline or cellpadding, that is deprecated and means things don't behave as you wanted. A tag like <center> or <font> doesn't belong in html5.
it could be hard to control the appearance of areas outside the body
body {margin: 1em 8%;}