• I copied and pasted a large table from Excel into WordPress, and it comes over fine, including the links, except there are no borders showing. As a result, the data is difficult to read.

    I am not the site administrator, and therefore cannot add plug-ins to solve the problem. Is there some code I can add in text mode to display the borders, or even add color to alternate rows of the table?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you find the table tag in the page editor’s text mode? You may be able to add styles there. For advice on styles, please post the url to the page with the table.

    Thread Starter royce88

    (@royce88)

    Thank you for your reply, sorry about the delay in my getting back to you.

    Unfortunately, the article is behind a membership paywall, and therefore I cannot give you an accessible link. However, here is the code that appears at the beginning of this very lengthy, detailed table. Subsequent rows after this header row follow the same pattern. I’ve tried adding in various code snippets from a variety of sites, but nothing causes it to display any differently. Any tips you can give me would be appreciated.

    <table width="1395">
    <tbody>
    <tr>
    <td width="101"><strong>State</strong></td>
    <td width="75"><strong>Tangible Personal Property</strong></td>
    <td width="80"><strong>Real Property</strong></td>
    <td width="83"><strong>Intangible Property</strong></td>
    <td width="350"><strong>Taxable Services</strong></td>
    <td width="570"><strong>Exemption Summaries</strong></td>
    <td width="136"><strong>Link to Exemptions Full Detail</strong></td>
    </tr>
    <tr>

    I understand that you don’t have rights to add to the site style sheets or add a custom css plugin.

    It may be impractical to add in-line styles to each element. You can try adding a style block. Although this makes for non-valid html, it does seem to work reliably. So after the table, add:

    <style>
    td {border:1px sold #ddd}
    tr:nth-child(odd) {background-color:#fdd}
    tr:nth-child(even) {background-color:#ddf}
    </style>

    You’ll need to do this with the editor in text mode. If you ever switch to visual mode, WP will strip the style block.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Table borders’ is closed to new replies.