![]() |
<tbody> vs. <table>
1 Attachment(s)
I'm running into a problem where using <tbody> causes the header bar to malfuntion, while using <table> in it's place fixes the header bar, but causes other things to go wrong.
What is the difference between these two tags, and more importatly, what can i do to make one of them work right? I've attached two screen shots showing the difference. The first uses <table>, the second, <tbody>. |
Need to see all of your code, but
a <table> tag is the start of a table, tbody is definging the body or part of the body of a table. So correct syntax <table> <thead> <tr><td></td></tr> </thead> <tbody> <tr><td></td></tr> </tbody> </table> You should be able to use tbody without a thead. |
This is the code from the default vB 'forumhome_forumbit_level1_nopost' template:
HTML Code:
<tbody> HTML Code:
<td width="17"><img src="./images/trapazoid/tcat_left.jpg" width="17" height="25"></td> The code I'm using (that doesn't work right) is: HTML Code:
<tbody> |
The issue comes down to the first part of the table, this table is setup for 1 td looking at the templatem you're adding another one, you need to add a row/column span, or add an additional td tag to the first part of the table.
|
How or where would I go about doing that?
|
Its your code :) so I can't tell you/
|
It's actually vB's code... I'm just trying to tweak it. There is no <table> tag in the template I'm working in, so I'm assuming it comes from somwhere else?
|
Try looking in FORUMHOME, as no doubt there is a table inside of it, and that table uses the $forumhome_blah_blah_bit variable which CONTAINS the template you're editing.
|
Found it:
HTML Code:
<!-- main --> |
All times are GMT. The time now is 07:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|