Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1369641

    Hi,

    I have created a comparison table.
    It displays info ok on desktop but some info is not displaying on a mobile

    See private

    Can you advise how to fix

    #1369749

    Hi,

    Please could you feedback on this so I can fix the issue.

    Thanks
    Marcus

    #1369762

    Hi,
    Thank you for the link to your table, on desktop the rows you mention are empty, for example “Charger specs”
    2022-10-21_004.png
    and mobile these empty rows are also shown:
    2022-10-21_005.png
    Perhaps you mean that you would like the mobile table to have the same layout as desktop, but since your table has so many columns it would be hard for the user to read, some table plugins do well with horizontal scrolling for mobile devices, if this is what you are looking for perhaps try one of these.

    Best regards,
    Mike

    #1369785

    Hi,

    We need the space for the headers to separate the content.

    Is there any way that the blank boxes can be removed on mobile?

    OR should I remove the sub headers altogether?

    Thanks
    Marcus

    #1369792

    Hi,
    I could probably write some code to hide the blank boxes on mobile, but I don’t understand their purpose on desktop, are they going to have content in the future?
    If not perhaps you should remove them as they make your table look incomplete.

    Best regards,
    Mike

    #1369848

    Hi Mike

    The blank boxes act a s a separator for the sub heading – which work on desktop but not on a mobile as they stack.

    Thanks

    #1369879

    Hi,
    Thanks for the feedback, this css will remove them on mobile:

    @media only screen and (max-width: 767px) { 
    #top #av_section_1 .avia-data-table tr:nth-child(7) > th:nth-child(n+1),
    #top #av_section_1 .avia-data-table tr:nth-child(13) > th:nth-child(n+1),
    #top #av_section_1 .avia-data-table tr:nth-child(17) > th:nth-child(n+1),
    #top #av_section_1 .avia-data-table tr:nth-child(23) > th:nth-child(n+1),
    #top #av_section_1 .avia-data-table tr:nth-child(30) > th:nth-child(n+1),
    #top #av_section_1 .avia-data-table tr:nth-child(33) > th:nth-child(n+1) {
      display: none;
    }
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.