Difference between revisions of "Aligning table into center using CSS"

From Notes_Wiki
(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...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>HTML|HTML</yambe:breadcrumb>
[[Main_Page|Home]] > [[HTML]] > [[Aligning table into center using CSS]]
=Aligning table into center using CSS=


To align table into center using CSS use:
To align table into center using CSS use:
Line 8: Line 7:


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.
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.
[[Main_Page|Home]] > [[HTML]] > [[Aligning table into center using CSS]]

Latest revision as of 06:02, 18 April 2022

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