• Resolved starettie

    (@starettie)


    Hi,
    The table is located in the “How it Works” section.
    There are 3 images in 3 columns with 3 rows (2 rows below each image).
    On a mobile, I need the the columns to stack with the rows below, while maintaining optimum image size (not shrinking the image to thumbnail size).
    (I’m replicating this site in WP, it works correctly here – https://www.clutch.health/ )

    None of the responsive modes from plugin seem to do the trick…

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I see what you mean, but unfortunately, I’ll have to disappoint you here. Due to how HTML tables are displayed by the browser, stacking columns like that is not possible ??

    To achieve what you want, you could try creating a table with 3 columns and just 1 row (just put the content in those cells underneath each other). Alternatively, you’d have to use other HTML elements on the page, like <div> containers, to create columns that can be grouped.

    Regards,
    Tobias

    Thread Starter starettie

    (@starettie)

    Hi,
    Thanks for pointing this out about HTML tables. When the columns are stacked by single row, the images shrinks in size to thumbnail size. Do you know how I can keep the full image size?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I’m not sure what exactly you mean. The current behavior? That’s influenced by the CSS

    .tablepress-id-1 img {
        width: 100%;
    }

    that you added to the “Custom CSS”.

    Regards,
    Tobias

    Thread Starter starettie

    (@starettie)

    I deleted the 2 rows below each column and added responsive=flip.
    You can see the images stack, but the images are very small because they are being resized as though they appeared 3 to a screen, instead of one to a screen. The width: 100% is not working, each image appears more like 30% of width. Do you know how to get the image to appear 80-100% of width so it fills the screen?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    that’s because of the CSS

    .tablepress-id-1 td {
      width: 33%;
    }

    which will need a small adjustment to

    @media screen and (min-width: 768px) {
      .tablepress-id-1 td {
        width: 33%;
      }
    }

    Regards,
    Tobias

    Thread Starter starettie

    (@starettie)

    Now it’s too big, and doesn’t auto-adjust to the screen size. On the phone, only half the image displays. Is there a script to size it to fit the screen? Thanks

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    it seems that you solved this by creating the columns with a different solution now?

    Regards,
    Tobias

    Thread Starter starettie

    (@starettie)

    Hi Tobias,
    I used Tablepress for a different project that required spreadsheets of data and it worked beautifully. You are correct that I am trying to achieve a layout with images that Tablepress wasn’t designed to do. I think it’s safe to close this ticket. Thank you for all the time you put into the issue.

    Thread Starter starettie

    (@starettie)

    Yes, I used the plug-in “Pricing System by Supsystic”. Again, I’m very sorry I took your time with this. Your plug-in is so fabulous it’s easy to default to it anytime you need a table for anything.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    nice! Good to hear that you found a solution for your use case!

    Best wishes,
    Tobias

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Need to stack columns with rows below for mobile view’ is closed to new replies.