0

where do you put <table algin="center"> in the code

I tried putting it everywhere but its wasnt happening

26th Aug 2018, 12:28 PM
Sher Ali Zafar
7 Answers
+ 3
I think its <table align="center"> the typo in "align" property?
26th Aug 2018, 12:37 PM
Ipang
+ 1
add table { border: 1px solid black; } to the css. Also add a width and height to the table
26th Aug 2018, 12:40 PM
ReimarPB
ReimarPB - avatar
+ 1
if you put only <table align=“center”> nothing will happen. every table must contain rows and columns, <tr> and <td>
26th Aug 2018, 4:13 PM
Timur Sarantsev
0
yes i know but how do i bring the table to the centre.... I have been putting the code and it doesnt work
27th Aug 2018, 1:29 AM
Sher Ali Zafar
0
Sher Ali Zafar, In additional: Try to play and practice with the folowing: table { margin-top:50px; margin-left:50px; /* OR */ padding-top:50px; padding-left:50px; /* OR */ top:50px; left:50px; }
27th Aug 2018, 2:29 AM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
0
Put this code between <body> tags if you have it, or just alone. <table border=“1” align="center"> <tr> <td>row 1 coll 1</td> <td>row 1 coll 2</td> </tr> <tr> <td>row 2 col 1</td> <td>row 2 col 2</td> </tr> </table>
27th Aug 2018, 5:12 AM
Timur Sarantsev