• Resolved surfersurfer

    (@surfersurfer)


    Hi Tobias

    I hope am not wasting your time. I have tried following your instructions for setting column widths without any success.

    .tablepress-id-123 th,
    .tablepress-id-123 td {
    width: 20%;
    }

    Here is the page https://www.juicelife.fr/shop-3/ – any chance yo can have a look please.

    [removed from public forum]

    Regards
    Tony

    • This topic was modified 8 years, 4 months ago by James Huff.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    First: Please don’t post admin/login credentials here publicly! I’ll ask a moderator to remove them.
    Please change all your WordPress passwords immediately now!

    Regards,
    Tobias

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    now, for your problem:

    At first, please add this to your “Custom CSS” (to reset some common stuff):

    .tablepress {
        word-break: normal;
    }
    .tablepress img {
        max-width: none !important;
    }

    If you then still want to set the column widths, I suggest to do it only on some columns via the code from https://tablepress.org/faq/column-widths/

    Regards,
    Tobias

    Thread Starter surfersurfer

    (@surfersurfer)

    Thanks Tobias

    Have changed my password.

    I tried what you suggested and there was a change but only the columns in the 1st row changed – row 2,3 and 4 have not been affected.

    This is what I did.

    .tablepress {
    word-break: normal;
    }

    .tablepress img {
    max-width: none !important;
    }

    .tablepress-id-Shop .column-2 {
    width: 20%;
    }

    Regards
    Tony

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    the problem here likely is those Woocommerce products. Those use some rather big HTML code and inserting that into tables is not really a good idea.

    I can only suggest that you try experimenting with setting the widths of the other columns as well. Keep in mind that you for example can never make columns smaller than what the content in them requires.

    Regards,
    Tobias

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    with a grid like you have now, this should indeed be better.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Columns not resizing’ is closed to new replies.