Aligning table into center using CSS

From Notes_Wiki
Revision as of 07:22, 1 January 2013 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>HTML|HTML</yambe:breadcrumb> =Aligning table into center using CSS= To align table into center using CSS use: <pre> style="left-margin:auto;right-margin:aut...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>HTML|HTML</yambe:breadcrumb>

Aligning table into center using CSS

To align table into center using CSS use:

style="left-margin:auto;right-margin:auto"

If it is desired that table uses some fixed percentage of browser width then that also can be specified with the help of width CSS attribute.