0
where do you put <table algin="center"> in the code
I tried putting it everywhere but its wasnt happening
7 odpowiedzi
+ 3
I think its <table align="center"> the typo in "align" property?
+ 1
add
table {
border: 1px solid black;
}
to the css. Also add a width and height to the table
+ 1
if you put only <table align=“center”> nothing will happen.
every table must contain rows and columns, <tr> and <td>
0
yes i know but how do i bring the table to the centre.... I have been putting the code and it doesnt work
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;
}
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>