Need help? Check out our Support site, then

How to get empty cell in tables?

  1. 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?


  2. The


    has to be entered into the "td" cell code in the HTML editor such as below, not into the visual editor.

    <td> </td>

    If that doesn't work, just put a period into the cell as a placeholder.

  3. 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....

  4. Are you missing something? <table border="1"><br /> <tr><br /> <td>Table cell 1</td><td> </td><td>Table cell 3 if you want</td><br /> </tr><br /> <tr><td>Another row cell 1</td><td>row2 cell2</td><td> </td><br /> </tr><br /> </table>
    Note: In Vigilance, the theme you're using: border is very dim, that's why I have used border="1".

  5. oops!   converted into a space. Re-written:
    <table border="1"><br /> <tr><br /> <td>Table cell 1</td><td> </<br /> td><td>Table cell 3 if you want</<br /> td><br /> </tr><br /> <tr><td>Another row cell 1</<br /> td><td>row2 cell2</td> <td> </<br /> td><br /> </tr><br /> </table>

  6. 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.

  7. 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 &nbsp; solution does not work.

  8. And to answer wpgaurav's question. This is the code I use to show a & sign followed by "nbsp":

  9. ~~airodyssey
    Me too. :)

  10. &nbsp; Thanks @airodyssey [if it worked].

Topic Closed

This topic has been closed to new replies.

About this Topic