• Resolved franzgasser

    (@franzgasser)


    Hi Tobias,
    I am using the following code in order to set column width of selected tables:

    .tablepress-id-9.column-1 {
    width: 100px;
    }

    .tablepress-id-9 .column-2 {
    width: 90px;
    }

    .tablepress-id-9 .column-3 {
    width: 80px;
    }

    Is there a way to use a shorter code for this, instead of defining width for each column? (for instance using only once the selector and then defining the width for all columns together).

    Kind regards

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    No, in this particular case, shortening is not possible.
    If some columns would get the same width, you could use a syntax like

    .tablepress-id-9 .column-1,
    .tablepress-id-9 .column-2,
    .tablepress-id-9 .column-3 {
      width: 80px;
    }

    (Note that your first block of code is missing a space before the .column-1.)

    Regards,
    Tobias

    • This reply was modified 6 years, 11 months ago by TobiasBg.
Viewing 1 replies (of 1 total)
  • The topic ‘column width’ is closed to new replies.