• I am using tablepress plugin (V 1.3) .i am unable to change the width of the column for a given tables
    I have following code for the table {[table id=general_schedule /]}

    .tablepress-id-general_schedule .column1 {
    width: 20px;
    }

    What am i missing?
    Same is true for other tables.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Do you need

    width: 20px !important;

    ??

    Thread Starter nb123

    (@nb123)

    I do have that code.still no effect.

    Ok, in which case it’s time to share the link to your site so we can play with it.

    Thread Starter nb123

    (@nb123)

    i am trying to increase the width of first column using this code

    .tablepress-id-general_schedule .column1 {
    width: 20px !important;
    }

    Thread Starter nb123

    (@nb123)

    Not sure where the link went,here it is :

    https://new.sprachfest.org/general-schedule/

    Ok, a few things are happening here.

    I always set the width of the table header, all rows benether it will then use the same width.

    So, this will increase the width of the first column to 100px

    .tablepress thead th.column-1 {
    width: 100px;
    }

    If you want to reduce the width of the column to 20px, you’re going to run into problems because you’re setting the table cells to have quite a lot of padding:

    .entry-content tr td

    See line 117 of style.css. Alter that, and you should be good to go ??

    Thread Starter nb123

    (@nb123)

    Thank you so much .This works

    Excellent.

    Please mark this thread as [resolved]

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Unable to change the width of the table column in tablepress’ is closed to new replies.