Click to See Complete Forum and Search --> : Centering A Div With A "<table>"


banksworld1986
03-05-2009, 08:10 PM
Hello everyone...

I created a shopping cart (not the best design, but more for the functionality). This miniature site is only 3 pages. You can select some things, and as you navigate you'll come to the 'checkout' page.

http:\\www.ibtestsite.info

The problem I'm having is that I want to center the <table>, but the height and width of the table depends on what you select. So it's wrapped in a <div> and I gave it a specific width and set margin-left and right to 'auto' and that still doesn't work. Any suggestions?

Fang
03-06-2009, 01:25 AM
Use a valid DTD (http://www.w3.org/QA/2002/04/valid-dtd-list.html)

banksworld1986
03-06-2009, 07:55 AM
Use a valid DTD (http://www.w3.org/QA/2002/04/valid-dtd-list.html)

Thanks for the advice. I solved it...I needed to specify a percentage width for the table...