• Resolved jarodsafehouse71

    (@jarodsafehouse71)


    Hi again!

    I find myself using much of the same CSS for each table ID and I was curious if it was possible to have multiple table IDs in the same element to reduce the amount of CSS.

    IE

    .tablepress-id-1 .column-1
    .tablepress-id-2 .column-1
    .tablepress-id-3 .column-1
    .tablepress-id-4 .column-1 {
    text-align: center;
    font-weight: bold;
    width: 300px;
    }

    Thank you for your help!

    https://www.ads-software.com/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Yes, that’s almost it! ?? Just add a comma between the different selectors, i.e. use

    .tablepress-id-1 .column-1,
    .tablepress-id-2 .column-1,
    .tablepress-id-3 .column-1,
    .tablepress-id-4 .column-1 {
      text-align: center;
      font-weight: bold;
      width: 300px;
    }

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Custom CSS’ is closed to new replies.