How to get empty cell in tables?
I am diving into html for tables (not by choice) as there is not Graphical Editor for them, and have run into the following glitch.
I understand (via googling the topic) that the way to get an empty cell is to use a nonbreaking space character inside the td tags, which is inserted by inputting in direct sequence
ampersand n b s p semicolon
This works fine when I test it in w3schools site. But when I do this in wordpress when I put that character sequence in, I get the literal character string showing up in the table cells. How can I force it to be interpreted?
Or, alternatively, what other trick do I need to use to get a blank cell in my table?
I’m sure lots of people have solved this already. Any tips?
has to be entered into the “td” cell code in the HTML editor such as below, not into the visual editor.
If that doesn’t work, just put a period into the cell as a placeholder.
Thanks for the tip.
That’s what I was doing – and it doesn’t work. Does it work for you?
I’ve worked around it temporarily by changing the design of the table….
Are you missing something?
<td>Table cell 1</td><td> </td><td>Table cell 3 if you want</td>
<tr><td>Another row cell 1</td><td>row2 cell2</td><td> </td>
Note: In Vigilance, the theme you’re using: border is very dim, that’s why I have used border=”1″.
oops! converted into a space. Re-written:
<td>Table cell 1</td><td> </
td><td>Table cell 3 if you want</
<tr><td>Another row cell 1</
td><td>row2 cell2</td> <td> </
Hi TSP! How to write & n b s p ;? I tried & a m p ; n b s p ; (w/o spaces), but it didn’t work.
In the old days of hard HTML coding, I would use a 1 x 1 px transparent GIF image that I would insert wherever I needed to add extra space between things or create an empty table cell. You could try that if the solution does not work.
And to answer wpgaurav’s question. This is the code I use to show a & sign followed by “nbsp”:
Me too. :)
The topic ‘How to get empty cell in tables?’ is closed to new replies.