• Resolved hugoribeiro

    (@hugoribeiro)


    Hello all!
    I’ve seen other posts that have a similar problem, but none of the solutions worked for me. I’ll show below what I’ve tried, and the code I have.

    I have 2 tables with “horizontal scrolling” enabled, which work fine for Androids, but apparently doesn’t work on iPhones – it simply “cuts” what doesn’t fit (and I don’t want to wrap the content). I don’t know if the problem is related, but the header row is not aligned with the table.
    It’s the bottom table in this website: https://mascaras-sociais.com/tipos-mascaras
    Screenshot on iphones: https://imagizer.imageshack.com/img923/342/mBsaHD.jpg
    (The big table in this link has the same problem https://mascaras-sociais.com )

    Here’s what I have tried and didn’t work:
    – Using responsive tables [table id=5 responsive=”scroll” /]
    – .tablepress-id-5 {word-break: normal;}
    – .entry-content .tablepress-id-5 {word-break: normal;}
    – .tablepress-scroll-wrapper {-webkit-overflow-scrolling: touch;}
    – remove the {white-space: nowrap;} that I have bellow
    – .tablepress { table-layout: auto;}

    Here’s the css code I have for the table (5 columns&2rows):

    .tablepress { table-layout: auto;}

    .tablepress-id-5 thead th,
    .tablepress-id-5 tbody td {
    font-size: 12px;}

    .tablepress-id-5 thead th {
    background-color: #90CAF9;}

    .tablepress-id-5 .row-2 td {
    background-color: #E3F2FD;}

    .tablepress-id-5 .column-5 {
    text-align: left;}

    .tablepress-id-5 thead th,
    .tablepress-id-5 tbody td {
    text-align: center;}

    .tablepress-id-5 .column-1,
    .tablepress-id-5 .column-2,
    .tablepress-id-5 .column-3,
    .tablepress-id-5 .column-4 {
    white-space: nowrap;}

    I am a beginner in this areas so I would greatly appreciate if you could help me! ??
    Thank you,
    Hugo

    • This topic was modified 4 years, 6 months ago by hugoribeiro.

    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 post, and sorry for the trouble.

    For all tables on that page, please uncheck the “Use Datatables” checkbox on their “Edit” screens, and add the responsive="scroll" parameter to the used Shortcodes, so that I can see with that in action.

    Regards,
    Tobias

    Thread Starter hugoribeiro

    (@hugoribeiro)

    Thanks for such a quick reply!
    It’s done, unchecked “Use Datatables” and used [table id=5 responsive=”scroll” /].
    But this way it doesn’t scroll on Android either…

    Also, i’m using default WP theme Twenty Twenty 1.2, TablePress 1.11, TablePress Extension: Responsive Tables 1.7 (all updated)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    it looks like the Shortcode parameters are not yet being recognized. Please type them in by hand (and not copy/paste, to rule out that anything “wrong”, like invisible characters, gets copied):

    [table id=4 responsive=scroll /]
    [table id=5 responsive=scroll /]

    Regards,
    Tobias

    Thread Starter hugoribeiro

    (@hugoribeiro)

    It’s recognized now. I was using the “” around scroll…
    (But still no luck with iPhone)

    And i’m only using this on table id=5 (because 4 is not to scroll, the text is wrapped).

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, yes, those were the wrong quotation marks then.

    Unfortunately, I have no idea why it’s not working with the iPhone, I’m really sorry ??

    Regards,
    Tobias

    Thread Starter hugoribeiro

    (@hugoribeiro)

    ??????

    Thanks anyway for trying!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, no problem!

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Scroll on iPhone doesn’t work’ is closed to new replies.