+ 1

What should i use to align the table in center?

I tried doing it by using "align" command but when it is aligned to center the table border disappears.

14th Dec 2016, 8:20 AM
Sindhuja.N
Sindhuja.N - avatar
6 Answers
+ 5
To align the table in center on the webpage you can easily do this by creating <centre> <table>•••••</table> </center> this but you must ensure that width of the table must be smaller than browser window. keep learning.
14th Dec 2016, 11:25 AM
Swarnab Das
Swarnab Das - avatar
+ 4
table { margin:auto; }
14th Dec 2016, 8:29 AM
Juan Madrigal
Juan Madrigal - avatar
+ 1
try by using css class ex. table { width:50%; margin-left:auto; margin-right:auto; }
14th Dec 2016, 8:25 AM
Nisarg Hingu
Nisarg Hingu - avatar
0
Thank you
14th Dec 2016, 8:34 AM
Sindhuja.N
Sindhuja.N - avatar
0
<table align="center">
16th Dec 2016, 11:08 PM
An An
An An - avatar
0
inside the table tag use the attribute align : <table algin="center">
23rd Dec 2016, 9:30 PM
Åd ËL
Åd ËL - avatar