• Resolved Gabriel

    (@aediasse)


    Does anyone know why table properties (background color, table thickness etc. can’t be changed on certain themes?

    Is there anyway around this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • This would be a function of CSS. The CSS being called likely has a style associated with ‘table’ which is applied to all tables that do not have a style applied. Changing that style may interfere with your site layout, so create a new style and apply that to the table you want to change.

    in your stylesheet:

    .newtablestyle1 {
    /*<===add css====>*/
    }

    add as many as needed…including items such as:

    .newtablestyle1 td {
    /*<===add css====>*/
    }
    .newtablestyle1 tr{
    /*<===add css====>*/
    }
    .newtablestyle1 th{
    /*<===add css====>*/
    }

    and then use this HTML example for site:

    <table class="newtablestyle1"><tr><td>/*<===table cell content html=====>*/</td></tr></table>

    Thread Starter Gabriel

    (@aediasse)

    This is from style.css:

    /* Start tables */

    .article table, table.article
    {
    border-collapse: collapse;
    margin: 1px;
    width:auto;
    }

    .article table, table.article .article tr, .article th, .article td
    {
    background-color:Transparent;
    }

    .article th, .article td
    {
    padding: 2px;
    border: solid 1px #97919C;
    vertical-align: top;
    text-align:left;
    }

    .article th
    {
    text-align:center;
    vertical-align:middle;
    padding: 7px;
    }

    /* Finish tables */

    I didn’t fully understand you answer, but is there anything I could do with this the way you (or someone else) see it?

    thanks

    Thread Starter Gabriel

    (@aediasse)

    Ok, now I understand what you are saying, but I don’t know what to write here:

    <===add css====>

    Thread Starter Gabriel

    (@aediasse)

    Figured it out. Just removed the table thing I posted above from stylesheet.css!

    I don’t understand why the put it in there though!

    It may be used somewhere in posts, pages, excepts, the header, widgets, sidebars, footer or most likely forms…review all sections of your site. If the site layout is acceptable then you are all set!

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

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