Table problem
Autor: Ludo Joosen
Visitado 1271,
Followers 1,
Compartido 0
I am trying to implement a table in my site.
The code looks like this
<table>
<th>
<td class="col1"><strong><categorie</strong></td>
<td class="col2"><strong>omschrijving</strong></td>
<td class="col3"><strong>prijs</strong></td>
</th>
<tbody>
<tr>
<td>ontharing mannen</td>
<td>jukbeenderen</td>
<td>70</td>
</tr>
<tr>
... until the end
The result is completely different. The header for the first column is dropped and in the header a fourth column is added.
Publicado en
copy/paste the entire code inside a txt file and attached here, so I would be able to see what exactly going on.
------------------------------------------------------------
Good Luck
http://www.nuluhost.com (6 months free for any x5 users, ask us about activation code)
http://www.wdesigners.us
http://www.usx5.com
Autor
Hello,
here's the complete listing.
Ludo
Hello Ludo,
Edit the first part of the HTML as follows:
<th class="col1"><strong>categorie</strong></th>
<th class="col2"><strong>omschrijving</strong></th>
<th class="col3"><strong>prijs</strong></th>
instead of...
<th>
<td class="col1"><strong><categorie</strong></td>
<td class="col2"><strong>omschrijving</strong></td>
<td class="col3"><strong>prijs</strong></td>
</th>
Kind regards,
Paul
Ludo you can use th tag as Paul pointed out for you or you can just simply use tr tag for your first row as well
<th><tr>
<td class="col1"><strong><categorie</strong></td>
<td class="col2"><strong>omschrijving</strong></td>
<td class="col3"><strong>prijs</strong></td>
</th></tr>
and remove the extra opening tag from categorie.
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck
http://www.nuluhost.com (6 months free for any x5 users, ask us about activation code)
http://www.wdesigners.us
http://www.usx5.com
Autor
Anthony,
if you leave the <th> code in your column headings will automatically appear centred which gives it a better lay-out in my opinion.
Ludo
Hi Ludo, I check in my x5 program, even if you remove that th to tr and leave the td classes, resault is the same, it will show in the middle.
ofc the choice is yours, which ever works the best for you ;)
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck
http://www.nuluhost.com (6 months free for any x5 users, promo code: usx56m)
http://www.wdesigners.us
http://www.usx5.com
Or better still just view our tutorials on creating your own custom table in html5 and css3 on www.x5tuts.com