• Resolved Nabukodonosor

    (@nabukodonosor)


    I’m trying everything from the FAQ, but my table is full width, and I need it smaller, maybe 400px. It’s only one cell table. Tried:

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

    But it doesn’t work.

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Instead of setting the column width, you probably just want to let the browser decide about the table width:

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

    Regards,
    Tobias

    Thread Starter Nabukodonosor

    (@nabukodonosor)

    Nope, I don’t want that. I want the table to be specific width. Is it possible?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    then just set a width there, and/or set the widths of all columns, just as you tried with your code above.
    Note that you can never set a column width smaller than what the content in the column requires. Also, you need to use the correct table ID.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘TablePress width’ is closed to new replies.