• Resolved jdoan824

    (@jdoan824)


    I’m having trouble adjusting the column width and padding of my table.

    Using this custom CSS code, I am can adjust row height but not space horizontal space between text and cell.

    .tablepress-id-N .column-2 {
    padding: 4px;
    }

    This code adjusts column width but only to a certain extent. It seems like the table is set for some arbitrary width and that overrides my columm width adjustment. How do i properly adjust my column width to just wide enough for the text.

    .tablepress-id-N .column-2 {
    width: 100px;
    }

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    By default, the table will indeed stretch to 100% width of the available content area.
    You will therefore probably want to add

    .tablepress-id-N {
      width: auto;
    }

    (with the correct table ID) as well, to change that.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Column Width’ is closed to new replies.