• Hi,
    Hoping for some answers. I use WordPress more for a website than a blog and have been using tables on the site to organize data. The site is for an event and on my Silent Auction page https://vineyardwalk.com/silent-auction I like to list the donor and items we receive.

    I have this for my table code: ‘<table border=”1″ cellpadding=”5″ cellspacing=”0″>’ however, the cellpadding is NOT taking and it appears like 0 is being used. I’ve cranked it up to about 20 and while my Visual display changes with the setting updates, the actual site renders it the same, as though cellpadding is zero.

    Does anyone have any ideas? I know some of you are going to say “upgrade” and I can tell you that I tried that (through the GoDaddy site) and it failed so now I feel a bit stuck. Please offer any help and I am all ears!

    Michelle

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    Add this to your stylesheet styles.css in your theme folder and see if it accomplishes what you want

    td { padding: 4px 0px 4px 10px; }

    that means add 4px padding to the top, 0 to the right 4 to the bottom, and 10 to the left. You can adjust it as you like.

    Hello,

    I have the same problem, and adding that line in the styles.css didn’t work. I also tried this:

    <table id=”socialimages”>
    <tr>
    <td>…

    And adding this in the styles.css

    #socialimages
    {
    padding: 0px 20px 0px 0px;
    text-align: center;
    }

    Can anyone help me?

    I ran into this problem. I would give a table various cellpadding and cellspacing values defined within the <table> such as…

    ‘<table cellspacing=”10″ cellpadding=”10″>’

    This did not work, nor did any alterations of that, such as using px, or putting it this way with an inline style:

    ‘<table style=”cellspacing=”10″ cellpadding=”10″>’

    Here’s what I realized. The Artisteer-made CSS had created default styles for th and td that were overriding everything. In CSS…

    ‘.art-article td
    {padding: 2px
    }’

    So the temporary solution, until I have time to create styles and id’s, is to write for each td in my particular table:

    ‘<td padding style=”padding: 8px;>’

    That worked for me, but I would love to hear from others if they have different fixes. What I seemed to learn from this is you have to pad the td’s, not the table. And that “cellspacing” and “cellpadding” are much too easily ignored, whether in WordPress or in general.

    Sorry, that’s
    <td style=”padding:8px;”>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Table cellpadding not working’ is closed to new replies.