How to make table align in center

I want to make my table to center of page. pls tell me how to make table in middle of page :-)

8th Nov 2016, 10:04 PM
J3kob - avatar
2 Answers
Way 1: Table must have a parent that is full width. Centering vertically margin-left: auto; margin-right: auto Way 2 Horizontally & verticallly position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); Way 3 Uses flexbox. Horizontally & vertically Apply at parent. display: flexbox; align-items: center; justify-content: center
8th Nov 2016, 10:13 PM
lcx - avatar
Use the Following: <div style="display: block"> <table style="margin:auto"> *content* </table> </div> easy and simple!
8th Nov 2016, 10:17 PM
Paul Kabira
Paul Kabira - avatar