• Resolved aspire2022

    (@aspire2022)


    Hi Tobias,

    Thank you so much for such an excellent plugin – tablepress.

    I am trying to make the tables responsive but unable to do so. While it loads fine on desktop, it doesn’t load fine with the phone or the tablets.

    When I try to use the stack mode, the table doesn’t resize when the phone is flipped or when the tablet is flipped.

    This is the page and I am trying to do all for all tables on the site

    I want the tables to be responsive on phone and tablets and resize as per the screen size but it is not happening as of now. Also want the borders and the header of the table in the stack mode.

    Please guide and thank you so much for your help

    Thanks
    aspire2022

    • This topic was modified 4 years, 7 months ago by aspire2022.
    • This topic was modified 4 years, 7 months ago by aspire2022.
    • This topic was modified 4 years, 7 months ago by aspire2022.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    In your “Custom CSS”, you have the CSS code

    .tablepress {
    	width: auto;
    	margin: 0 auto 1em;
    }

    Can you please remove that? It’s not necessary here, and after removing it, the table should be in full width in the stack mode.

    Unfortunately, it’s not possible to also see the header row values in the stack mode, as that can’t be “split” between the many rows.

    Regards,
    Tobias

    Thread Starter aspire2022

    (@aspire2022)

    Working great now.

    I also want to add borders to the table

    And want the header to be displayed on the top/start of the table – not for each entry but just once at the top so that the readers don’t feel disoriented with what the rows represent in the table.

    Thank you so much for all your help.

    aspire2022.

    Thread Starter aspire2022

    (@aspire2022)

    By borders, borders/separators around each row.

    Thanks
    aspire2022

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

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

    @media screen and (max-width: 768px) {
      .tablepress-id-1 tr {
    	border-top: 1px solid #333333;
    	border-bottom: 1px solid #333333;
      }
    }

    Regards,
    Tobias

    Thread Starter aspire2022

    (@aspire2022)

    Thank you Tobias.

    This gives me the border for each entry but not the internal ones.

    Please check this https://rb.gy/pegepm

    It has a border+line separator for each element of the entered row

    Also it has a header row fixed on the top/start of the table.

    Want to have these two effects. Please guide.And thank you so much for helping with all my queries.

    aspire2022

    • This reply was modified 4 years, 7 months ago by aspire2022.
    • This reply was modified 4 years, 7 months ago by aspire2022.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    okay, please also add this then:

    @media (max-width: 767px) {
    table.tablepress-id-1 thead {
    	display: block;
    }
    .tablepress-id-1 thead tr,
    .tablepress-id-1 thead th {
    	display: block;
    	width: 100% !important;
    }
    .tablepress-id-1 tbody td {
    	border-top: 1px solid #cccccc !important;
    }
    }

    Regards,
    Tobias

    Thread Starter aspire2022

    (@aspire2022)

    And if I want this to be applicable on all tables on the site, I should remove the “-id-1” from the code. Am I right ?

    Thanks
    aspire2022

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, then you would use .tablepress instead of .tablepress-id-1.

    Regards,
    Tobias

    Thread Starter aspire2022

    (@aspire2022)

    A big thank you Tobias from all of us here for improving the reader’s experience at hod9.com

    Thanks
    aspire2022

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter aspire2022

    (@aspire2022)

    Hi Tobias,

    How to apply border on the sides of the table ?

    Thanks
    aspire2022

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    for that, you can add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-252 {
        border-left: 1px solid #000000;
        border-right: 1px solid #000000;
    }

    Regards,
    Tobias

    Thread Starter aspire2022

    (@aspire2022)

    Thank you, again !

    aspire2022

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    always happy to help! ??

    Best wishes,
    Tobias

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘unable to make the tables responsive’ is closed to new replies.