• Hi
    i use plugin tablepress, it very good! one moment….
    there are different tables which need to apply one style
    now :

    .tablepress-id-1 .column-1,
    .tablepress-id-5 .column-1 {
    width: auto; }

    it is possible to make the list of all IDs in one parameter?
    want for example so:

    .tablepress-id-1,5,...N.... .column-1 {
     	width: auto; }

    OR

    .tablepress-id-1-5-...N.... .column-1 {
    width: auto; }

    – but dont work

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    thanks for your question, and sorry for the trouble.

    No, that is not possible like this, because of how CSS code works.

    Instead, you could use an “Extra CSS class”. For example, add “tablepress-my-custom-style” (or something similar) to the “Extra CSS classes” field on the “Edit” screen of each table where you wan this. After that, you can use this CSS:

    .tablepress-my-custom-style .column-1 {
      width: auto;
    }

    All tables that have that Extra CSS class will automatically get this stylng.

    Regards,
    Tobias

    Thread Starter echod

    (@echod)

    it works!
    i should look post in support better before ask question

    Thanks for answer!

    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 ‘[Plugin TablePress] Different IDs in one style’ is closed to new replies.