Support » Plugin: TablePress » CSS Changes Work With One Table Only

  • Resolved hollywoodonlocation

    (@hollywoodonlocation)


    I successfully changed font size with one table, and want to do with another table, but it is not working. Using same code, but just changed table ID. Table “7” has no effect.

    Ideas? See codes below.
    —-

    }
    .tablepress-id-9 tbody td {
    font-family: Tahoma;
    font-size: 11px;
    color: #ff0000;
    }

    tablepress-id-7 tbody td {
    font-family: Tahoma;
    font-size: 11px;
    color: #ff0000;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You have forgotten the . (period) before tablepress-id-7. Once you add that, everything should be fine.

    Note that instead you could use a shorter piece of code:

    .tablepress-id-7 tbody td,
    .tablepress-id-9 tbody td,
    .tablepress-id-13 tbody td {
      font-family: Tahoma;
      font-size: 11px;
      color: #ff0000;
    }

    would for example change the font in tables 7, 9, and 13 at once.

    Regards,
    Tobias

    mibtp

    (@mibtp)

    Thank you. Worked!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS Changes Work With One Table Only’ is closed to new replies.