HTML table

  • Unknown's avatar

    I’ve been using an HTML code to input a basic table in my posts. I’ve copied and pasted the same code into a new post and it doesn’t work. Its the exact same code as before just with different variables.

    <table border=’”1″’ width=’”390″’ cellspacing=’”0″’ cellpadding=’”0″’>
    <tbody>
    <tr>
    <td>Bullet</td>
    <td>Powder</td>
    <td>Charge</td>
    <td>Vel. Low</td>
    <td>Vel. High</td>
    <td>Avg. Vel</td>
    </tr>
    <tr>
    <td>RCBS </td>
    <td>A5744</td>
    <td>21.0 gr.</td>
    <td>1916</td>
    <td>1982</td>
    <td>1945</td>
    </tr>
    <tr>
    <td>RCBS</td>
    <td>Unique</td>
    <td>12.5 gr.</td>
    <td>1628</td>
    <td>1669</td>
    <td>1649</td>
    </tr>
    <tr>
    <td>Hornady 140 gr. BTHP</td>
    <td>IMR-4831</td>
    <td>40.8 gr.</td>
    <td>2633</td>
    <td>2677</td>
    <td>2653</td>
    </tr>
    <tr>
    <td>Hornady 129 gr. SP</td>
    <td>RL-15</td>
    <td>35.7 gr.</td>
    <td>2592</td>
    <td>2659</td>
    <td>2630</td>
    </tr>
    <tr>
    <td>Sierra 85 gr. HP</td>
    <td>Varget</td>
    <td>41.0 gr.</td>
    <td>2962</td>
    <td>3172</td>
    <td>3126</td>
    </tr>
    <tr>
    <td>Hornady 160 gr. RN</td>
    <td>IMR 7828</td>
    <td>44 gr.</td>
    <td>2462</td>
    <td>2541</td>
    <td>2517</td>
    </tr>
    </tbody>
    </table>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hello,

    Can you tell me what you are seeing when you add this code your post? For example, does the table not appear at all or are table cells misaligned?

    In the code you have shared I noticed the table properties (width, cellspacing, cellpadding) have two sets of quote marks:

    <table border='”1″' width='”390″' cellspacing='”0″' cellpadding='”0″'>

    You only need to use one set of quote marks like this:

    <table border=”1″ width=”390″ cellspacing=”0″ cellpadding=”0″>

    Let me know what you are seeing when you add your table code and we’ll go from there.

    Gemma

  • Unknown's avatar

    Gemma,

    Thank you so much for the quick response. It turns out the problem arose from the absence of an apparently required non breaking space. My other tables do not have them but I supposed the rules have changed for the future.

  • Unknown's avatar

    Actually I was incorrect. After some more fiddling around I see that when I had originally entered the code into the post, it had been pasted on the Visual tab instead of the HTML tab. The non breaking space had nothing to do with it. In addition, I found the extra quotation marks, or deletion thereof, had no apparent effect. Thanks again!

  • Unknown's avatar

    That’s good news, I’m pleased you managed to locate the problem!

    Gemma

  • The topic ‘HTML table’ is closed to new replies.