• Resolved abdex

    (@abdex)


    Hi,
    Is there a way the width of each column can be resistricted?
    I have tried a few options but the table is then pushed off the page. We need the part numbers to be on one line and not breaking onto two. However, each table has part number in a different column.

    Thanks

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    For that, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-1010 .column-3 {
      white-space: nowrap;
    }

    This will prevent line breaks in those part numbers.

    However, the table might then be too wide, especially on small screens, so that you could maybe take a look at https://tablepress.org/extensions/responsive-tables/

    Regards,
    Tobias

    Thread Starter abdex

    (@abdex)

    Hi,
    Thank you. That has only fixed the issue with that one table though. Is there no easy way to fix them all rather than one by one?

    Thanks

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you could indeed prohibit automatic line breaks for all cells of all tables, by using

    .tablepress th,
    .tablepress td {
      white-space: nowrap;
    }

    but you would then have to add all desired line breaks manually.

    Regards,
    Tobias

    Thread Starter abdex

    (@abdex)

    Hi Tobias
    IS it possible to have images in the tables? So instead of the header text we could use an image instead?
    Thanks

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, that’s no problem! You can use the “Insert Image” button below the table input fields to upload and insert an image from your site’s media library.

    Regards,
    Tobias

    Thread Starter abdex

    (@abdex)

    Ah thats great – sorry I didnt spot that there!

    Is there no other way of making the tables reponsive other than by having the scrolling left and right option?

    Thank you!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you could take a look at https://tablepress.org/extensions/responsive-tables/ for other options.

    Regards,
    Tobias

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