• Resolved cabhead

    (@cabhead)


    Ich möchte eine Liste erstellen mit mehreren Zeilen und mindestens 3 Spalten. Nun habe ich das Problem das die abstände zu den Spalten viel zu groß sind, sodass man zb. Spalten nicht miteinander Vergleichen kann.
    Gibt es eine Möglichkeit, dass sich die spallten automatisch dem Inhalt anpassen?

    Hier ein Bild zu meinem Problem: Hier

    Danke für die Hilfe im Vorraus
    MfG cabhead

    https://wordpress.org/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    As these are the English-language forums, I’ll reply in English, so that more people can benefit from our discussion. I hope that’s ok.

    The reason for this is that the table width is stretched to 100% of the content width.
    To change this, some “Custom CSS” on the “Plugin Options” screen like

    .tablepress-id-123 {
      width: auto !important;
    }

    (with the correct table ID) should help.

    Regards,
    Tobias

    Thread Starter cabhead

    (@cabhead)

    I’v added the code into the custom css with the right id… nothing changed 🙁

    wenn ich eine Tabelle einer anderen seite impotiere funktioniert es komischer weise … aber bei eigene tabellen nicht

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter cabhead

    (@cabhead)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the link!

    Not the id part has to be changed, but the number (from 123 to the correct ID) 🙂

    Additionally, please try turning off the “Use DataTables” checkbox on the table’s “Edit” screen, as that would interfere here (you’d have to set the width of the wrapping container otherwise.

    Regards,
    Tobias

    Thread Starter cabhead

    (@cabhead)

    without “use datatables” i cant use the scrollingfunktion, rigth?
    i removed the option and chanched the id but still have the problem

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, that helped. Now I see what’s going on.

    You can now actually turn DataTables back on (so that you can use the scrolling), and you can remove the CSS for the widths again. That won’t help here.

    Instead, you will have to change the HTML code that is inserted in the cells (for the images). That starts with something like

    <figure style="width: 1200px;"

    and that 1200px number is responsive for the large width. So, either remove or adjust that attribute in all cells, or try doing that with CSS:

    .tablepress-id-2 figure {
      width: 250px !important;
    }

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Column problem’ is closed to new replies.