Tables dropping lines
-
I notice when I paste tables from my stats page to my blog post that the tables generally drop about half of their lines, so I end up with a post that doesn’t actually have the specific lines I’m referencing, but it seems every second line instead. Is there a workaround for this? Formatting tables from scratch is well beyond my capabilities.
-
Are you just copying and pasting the text from the page or the underlying HTML? I see your post where it;s just the text. Gotta admit that I would be doing the HTML as to include the links.
-
There are no links in the table I’m pasting. I copy it straight from the web page (not the code) and paste it in. I don’t know why certain lines would work and certain others not work, particularly as it’s all WordPress. The table should be twice that length.
Oh well, I’ll try the HTML next time.
-
I’ll test it in the morning. I really should have been out of here an hour ago.
The reason i was suggesting the HTML was because you could include the links to the posts.
-
-
Just noticed this myself, Raincoaster. It seems to be happening when I switch from the code editor to the visual editor or just save the post in the visual editor. Looks fine in the visual editor, but either save (or publish) the post or switch to the code editor and the table is immediately half the size.
To work around it I have avoided using the visual editor or used blogdesk – but that has nuances of its own.
I will play around with this a bit and see if I can work it out. -
Seems to be the “class” bits within the td tags – removing the “class = alternate” bit changed the lines that were dropped, but it still dropped alternate lines, just starting with line 2, rather than line 1.
-
Okay, thanks. I’ll try that. I just gave up on posting tables, but now I have an important one to do, so the timeing is great!
-
-
I had the same problem. What you need to do is add {border=”1″}.
Eg. The following HTML will not show the borders of the table:
<table>
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Example of a simple table</td>
<td>The table has 2 columns, each one with a column header.</td>
</tr>
<tr>
<td>The first 2 rows each have 2 cells</td>
<td>One cell in each column.</td>
</tr>
</tbody>
</table>But adding border=”1″ (or whatever thickness of border you desire) will show the lines. Insert it next to “table” in the first line:
<table border=”1″>
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Example of a simple table</td>
<td>The table has 2 columns, each one with a column header.</td>
</tr>
<tr>
<td>The first 2 rows each have 2 cells</td>
<td>One cell in each column.</td>
</tr>
</tbody>
</table>Also remove the white spaces.
-
I’ve found some error in the coding for WordPress.
When you add a table (you have to add the border=”1″ bit otherwise the lines of the table disappear) by adding this sort of code:
eg. <table border=”1″><tr>TEXT</tr></table>
it looks OK in the Preview after you save it.
But the problem is that when you go back to the Code view to add more text, the “<table border=”1”> has disappeared!
You just have
tr>TEXT</tr></table>
so it loses the lines of the tables on the next preview.
Could WP please look into this as tables are a useful addition to blogs.
I’ve started a new thread on this. Just after I find the solution to one problem (lines not appearing in table), another problem pops up (lines don’t stay).
-
Ignore the last post. I hadn’t closed tags and the editor was trying to do that for me.
The same thing happened (first row dropping) when the text wasn’t properly enclosed in ‘tr’ and ‘td’ tags. I don’t know why they didn’t appear as I copied directly from the source code of the webpage onto the editor.
After I cleaned up the row that was dropped by adding the <td> tag, it appeared.
It usually happens to the first row of the table. The other rows were fine and appeared with the right tags.
- The topic ‘Tables dropping lines’ is closed to new replies.