+ 2
Is this the right tag to center a table. < Table align:"center"></tabel>
12 Answers
+ 5
align="center"
+ 3
yes it will work
+ 3
try
margin: 0 auto;
on the table tag
+ 2
SoloProg
oooh man, i did not noticed it's : not =
+ 2
Try :
<table align="center">
<!-- table info-->
</table>
+ 2
I usually add a class to the table element and then alter it on CSS by doing this:
.classname{
width : 90%;
margin-right : 5%;
margin-left : 5%;
}
Or you could just use:
.classname{
margin : 0 auto;
}
Note that for the first example I divided the remaining width by 2 and allocated it evenly between the left margin and the right margin..You can use your own values by the way😄
+ 2
I still have to learn CSS, in still busy with html but thank you
+ 1
Thanks
+ 1
I saw that mistake
+ 1
It works
0
For some reason it doesn't, I did it on notepad ++and it doesn't work, my table is to the left
0
It did, thank you so much