• Resolved lucaspanjaard

    (@lucaspanjaard)


    Hi Tobias,

    I have the following custom css code,

    .tablepress-id-520 .column-2,
    .tablepress-id-520 .column-5,
    .tablepress-id-520 .column-8,
    .tablepress-id-520 .column-11 {
    	border-left: 1px solid #cccccc;
    }

    I’d like to assign this code to tables with IDs ranging from 533 to 540.

    Would something like this be possible,

    .tablepress-id-[533-540] .column-2,
    .tablepress-id-[533-540] .column-5,
    .tablepress-id-[533-540] .column-8,
    .tablepress-id-[533-540] .column-11 {
    	border-left: 1px solid #cccccc;
    }

    If not, is it possible to declare multiple extra css classes per table?

    With kind regards,

    Luca

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    No, sorry, this is not possible, I’m afraid, as the CSS specification does not allow for something like this ??

    Your best approach should indeed be to use “Extra CSS classes” here. You can specify these in the corresponding input field, just separate multiple of them by a space character, like class-1 class-2 class-3.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to assign CSS to table in range of ID numbers?’ is closed to new replies.