Aligning table into center using CSS

From Notes_Wiki
Revision as of 06:02, 18 April 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > HTML > 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.



Home > HTML > Aligning table into center using CSS