To center a fixed width page horizontally within a user's screen of unknown width, I currently place page content within a single-cell table of width x within a center tag.
Is there a CSS1 equivalent for this layout?margin: auto; works in all decent browsers. For IE 5 and 5.5, you'll have to add text-align: center; to the parent element, however. margin: auto; only works in IE 6 if your page is not running in quirks mode, so be sure to specify a valid DOCTYPE.
Is there a CSS1 equivalent for this layout?margin: auto; works in all decent browsers. For IE 5 and 5.5, you'll have to add text-align: center; to the parent element, however. margin: auto; only works in IE 6 if your page is not running in quirks mode, so be sure to specify a valid DOCTYPE.