Tagged: , ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #416459

    The table element looks great on desktop computers. On mobile, the table changes to a single column – which is expected. The order of items displayed in a single column results in a confusing list of data that can’t be made sense of. Is there a way to control the display hierarchy of the items in the table?

    Current:
    2nd Heading Row (of all default columns)
    Default Row / Description Column
    Default Row / Default Column (of all default columns)
    2nd Default Row / Default Column (of all default columns)
    (and so on)

    Desired:
    Heading Row (default column 1)
    2nd Heading Row (default column 1)
    Default Row / Default Column (default column 1)
    2nd Default Row / Default Column (default column 1)
    (and so on down the 1 column)
    Heading Row (default column 2)
    2nd Heading Row (default column 2)
    Default Row / Default Column (default column 2)
    2nd Default Row / Default Column (default column 2)
    (and so on down the 2 column)
    (and so on to complete the table)

    #417228

    Hey m!

    Add this to your custom CSS.

    @media (max-width:400px) {
    table tbody > tr:nth-child(1), table tbody > tr:nth-child(2) {
      display: none !important;
    }
    }

    And with how you currently have the table setup I think your wanting to do this, https://kriesi.at/support/topic/bug-table-headers-applied-incorrectly-on-media-query/.

    Regards,
    Elliott

    #417740

    Thanks but this didn’t change the display on mobile. It still has the same problem. I just need to change the look on mobile so the data is in a sensible order on mobile.

    #417766

    Hey!

    Can you please try changing the code to following one

    @media only screen and (max-width: 480px) {
    table tbody > tr:nth-child(1), table tbody > tr:nth-child(2) {
      display: none !important;
    }
    }

    Best regards,
    Yigit

    #418024

    Tried it, but the mobile still looks the same.

    #419407

    Hi!

    Perhaps you have a typo in your CSS somewhere. Send us a WordPress login and we’ll take a closer look.

    Cheers!
    Elliott

    #420340

    sending…

    #420374
    This reply has been marked as private.
    #421982

    Hi!

    Can you upgrade the login to admin?

    Best regards,
    Elliott

    #422087
    This reply has been marked as private.
    #422419

    Hey!

    Please remove all css modification for the table then edit the table element on the page. Set the table purpose to tabular then adjust the responsive styling to make the entire table scrollable.

    Regards,
    Ismael

    #423127

    Thanks, this worked! :)

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Viewing tables on mobile devices – confusing order of items displayed’ is closed to new replies.