how to center a table in html
snippet in html

how to center a table in html

user1145

<table style="border:1px solid black;margin-left:auto;margin-right:auto;">

align table in middle of page

user3544

table#yourTable {
    position: fixed;
    left: 50%;
    top: 50%;
    margin: -(H/2)px -(W/2)px;
    width: Wpx;
    height: Hpx;
}

how to align table in html

user7481

.centerTable { margin: 0px auto; }

align table center

user2280

<table align="center">