• Resolved travelhippi

    (@travelhippi)


    Hi
    How do I specify the row height for the whole table? I tried adding it to the .tablepress section but that does not work. Do I need to specify each row separately?

    .tablepress {
    margin: 0 auto 1em;
    line-height: normal;
    }

    .tablepress-id-1 thead th {
    font: bold;
    }

    .tablepress-id-1 {
    width: 750px !important;
    }

    .tablepress-id-1 .row-2 td {
    padding-top: 2px;
    padding-bottom: 2px;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter travelhippi

    (@travelhippi)

    Hi there

    I figured this out and my table is fine now
    Thanks
    Ciska

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Awesome! Good to hear that you found a solution already!

    Best wishes,
    Tobias

    Thread Starter travelhippi

    (@travelhippi)

    Hi

    Yes sorry about the support call for that. I wanted to find out if there is a way to clean up the code when you want to apply the same formatting to several columns in 1 table. Below is my code but I’m sure there is a simpler way to combine code?

    .tablepress-id-2 .column-4 {
    width: 200px;
    text-align: center;
    }

    .tablepress-id-2 .column-1 {
    width: 300px;
    }

    .tablepress-id-2 .column-2 {
    text-align: center;
    }

    .tablepress-id-2 .column-3 {
    text-align: center;
    }

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you could simplify this a bit by merging selectors:

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

    This is possible when the command part between the { and } is the same.

    Regards,
    Tobias

    Thread Starter travelhippi

    (@travelhippi)

    Hi Tobias

    Thanks so much!

    Ciska

    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 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Row Height (Whole table)’ is closed to new replies.