Why do cells in tables shrink?

Jump to solution
JudeFord
Community Member

Hi, When I create a table, the cells look normal size. But when I hit save, all the cells that are empty shrink down to almost nothing. See image attached. It is very annoying, how do I stop this happening? I can't even get the cursor in there to fix them.

 

Labels (1)
0 Likes
1 Solution

Hi again, @JudeFord ...

I just realized I probably should have provided a simpler solution than looking at the HTML code.  Here is something else that you can do...similar to what you were suggesting in your latest reply.

  1. Create your table in the RCE (Rich Content Editor)
  2. Add text to your top row to label your columns.
  3. In the cells where you will not have any text, just hit your space bar one time in each blank cell.
  4. Save your page.

This will display your page with the cells looking nice.  Here's an example of what the code looks like...

<table style="border-collapse: collapse; width: 98.1002%;" border="1">
    <tbody>
        <tr>
            <td style="width: 33.3153%;">Column 1</td>
            <td style="width: 33.3153%;">Column 2</td>
            <td style="width: 33.3165%;">Column 3</td>
        </tr>
        <tr>
            <td style="width: 33.3153%;">&nbsp;</td>
            <td style="width: 33.3153%;">&nbsp;</td>
            <td style="width: 33.3165%;">&nbsp;</td>
        </tr>
        <tr>
            <td style="width: 33.3153%;">&nbsp;</td>
            <td style="width: 33.3153%;">&nbsp;</td>
            <td style="width: 33.3165%;">&nbsp;</td>
        </tr>
    </tbody>
</table>

The &nbsp; is a non-breaking space (the spacebar) in HTML.

Hope this helps a bit!

View solution in original post

0 Likes