I have problem with tag

. When i want creat new page (with "full html") with tables. I write something like that:
<table>
<tr>
<td>something</td>
<td>something</td>
</tr>
<tr>
<td>something</td>
<td>something</td>
</tr>
</table>

Now i write it to story, result is:

something something
something something

In Preview is all unlike than i wrote. Its "confused". Somebody knows how to help me?

Comments

fturchi’s picture

I solved the problem by php code, for exampe I inserted the following code in my page:

  echo  "<table border=1>";
  echo "<tr><th>column 1</th><th>column 2</th></tr>";
  echo "<tr><td>value xxx </td><td>value yyy</td>";
  echo "</table>";

Obviously don't forget to chose "PHP code" as Input format!

good luck!

Michelle Higley’s picture

Copy the "table code" typed below and fill in what you would have go in each column/row. You may add columns and rows as much as necesary. Make sure though before you submit, that the Input Format is selected as Full HTML. This is the easiest way I can think of to create a quick table.

Table Code:
<table border="1" cellpadding="2" cellspacing="2" width="100%">
<tbody>
<tr>
<td valign="top">1st column 1st row<br>
</td>
<td valign="top">2nd column 1st row<br>
</td>
<td valign="top">3rd column 1st row<br>
</td>
</tr>
<tr>
<td valign="top">1st column 2nd row<br>
</td>
<td valign="top">2nd column 2nd row<br>
</td>
<td valign="top">3rd column 2nd row<br>
</td>
</tr>
<tr>
<td valign="top">1st column 3rd row<br>
</td>
<td valign="top">2nd column 3rd row<br>
</td>
<td valign="top">3rd column 3rd row<br>
</td>
</tr>
</tbody>
</table>