How can I center a page with Dreamweaver CS3 using an AP div tag?

How can I most simply center a page with Dreamweaver CS3, preferably using an AP Div Tag container?
Using text align center and margin 0 auto as some suggested didn't seem to do the trick.
I'd prefer to be able to do this using the CSS panel but not actually inserting code.
The only way I can do it is by using a table but I want to start designing sites with AP elements and CSS instead of relying on tables.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Peter HartCommented:
for css anddreamweaver see:

but there's nothing wrong with centreing a table with no border and writgin inside it.

<table align="center" border="0">
blah blah content

<div style="text-align:center; margin-left:auto; margin-right:auto;">
<div>this one should be centered now</div>


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jason C. LevineNo oneCommented:
You can't center an AP tag...absolute position means absolute.

So you can use either chiltern's or paul's method to center a relative div...

>> but there's nothing wrong with centreing a table with no border and writgin inside it.

Not totally true (the nothing wrong part), but that's a different discussion.
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

LPNavonAuthor Commented:
If you can't center AP div tags, it would seem AP divs are useless for creating pages with centered layouts, which I find rather disappointing.
Presumably I can't even really nest an AP tag in a centered relative Div tag. Perhaps I'll just have to resort to using tables again. I presume laying out a centered table but converting it to AP divs will also not work.

Peter HartCommented:
yep - AP are all about absolute positiions - so looking on different size screens/different resoltions itwould shift about - use regular CSS for centring or.....
the good old table method has the advantage of working    
...and on all browsers (IE,safari,firefox,netscape
But try the following CSS site
in particular:
LPNavonAuthor Commented:
Thanks for this Chiltern
Are tables actually more reliable in terms of browser universality than relative divs and CSS, which I thought I should be aiming for?
The MaxDesign site loos pretty cool...
Peter HartCommented:
certain CSS things don't work with IE  (usually the ones I've implemented)
I think now the market is 20% firefox, 15% (and rising) safari and 60% IE and the rest odds and sods.
tables do work but are clunky and slow if large as the page has to load the entire table before it shows
but do CSS until you hit a problem and work backwards to tables. :-)
Jason C. LevineNo oneCommented:
There is very little you cannot do with CSS that would force you to revert to a table for layout.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.