table center with css

Need to align a table in the center, and put some css elements inside. I'm using the align, and  in internet explorer works fine, but in firefox and chrome align to the left.
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.

Shinesh PremrajanEngineering ManagerCommented:

<table align="center" style="float:center;"  >

Hope this helps..
rflorencioAuthor Commented:
Expression web says: the property is invalid because is not supported by current schema
Just use
<table align="center">
The  style="float:center;"  is invalid and not supported by CSS
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!

BTW, if the above does not help, please post your code or a live link.
Shinesh PremrajanEngineering ManagerCommented:
add this CSS style


and then update the table with the id

<table align="center" id="tablecenter" >

Hope this helps
@shinuq:  There is no attribute float:center.
The proper attributes of float are:
  • left
  • right
  • none
  • inherit
Shinesh PremrajanEngineering ManagerCommented:
oh my apologies.. please ignore the comments ...

Tyr this out..

<table align="center">
Please try not to use the <center> tag as it is depreciated and not supported by browsers, like IE
If you're using this table for layout, that's a bad idea - you 'd likely be better off using a <div> and applying your styles to that. Tables are meant for tabular data, not styling a page.

In any case, if this is a fixed width table or div (i.e. a width defined), you should be able to do margin: 0 auto;

Also, are you able to share the source code with us?

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
rflorencioAuthor Commented:
I put the table inside a div, i have applied align=center in div. Appears to have resulted
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
Web Languages and Standards

From novice to tech pro — start learning today.