• Resolved purityboy83

    (@purityboy83)


    Hi

    The width of the table inserted into my poster is fixed to a specific value.
    I am looking for css or plugins that have determined the size.

    <table id=”tablepress-5-no-2″ class=”tablepress tablepress-id-5 dataTable no-footer” aria-labelledby=”tablepress-5-no-2-name” role=”grid” aria-describedby=”tablepress-5-no-2_info” style=”width: 637px;”>

    style=”width: 637px;” <— I’m looking for something to set this “width” to.

    Do you have any settings in the “tablespace” plugin?

    When checking in Chrome Developer Tools, CSS Style is checked below.

    element.style {
    width: 637px;
    }

    i’m also looking into themes and other plugins.
    Is there anything I can get help or information on?

    Thanks

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This width is automatically calculated by the DataTables JavaScript library that TablePress uses for the sorting, search, etc. features.
    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter purityboy83

    (@purityboy83)

    Hi

    Could you give me your email address?
    I will send you a link by email

    Thanks

    Best Regards,
    Hyunho

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, the email address is on https://tablepress.org/impressum/ .

    Regards,
    Tobias

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the link! I’m not really sure, but it seems that this could be related to the Horizontal Scrolling feature. Due to how the CSS code of your theme is coded, this is having problems properly calculating the column widths.
    Can you therefore please try again after turning off the “Horizontal Scrolling” checkbox on the table’s “Edit” screen?
    If it works then, and to get back horizontal scrolling, I recommend using the scroll mode of the TablePress Extension from https://tablepress.org/extensions/responsive-tables/

    Regards,
    Tobias

    Thread Starter purityboy83

    (@purityboy83)

    Hi

    I installed “TablePress Extension” following your instructions.
    Then on my pc screen, it’s just as wide as I want it to be.
    However, horizontal scrolling is not available on mobile phones.

    This happens when enabling or disabling horizontal scrolling in tablepress (both).

    This means that when you install the extension your pc screen will be “width=100%” but your phone won’t scroll.

    Thanks

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    can you please activate the scroll mode again (and turn off the “Horizontal Scrolling” checkbox) so that I can see this for myself?

    Regards,
    Tobias

    Thread Starter purityboy83

    (@purityboy83)

    Hi

    We’ve sent you information about the new test site by email.

    You might want to check it out yourself.

    Currently, the extension plugin is installed and activated, and the scroll function is also activated.

    Scrolling still doesn’t work on mobile.

    Please check the email we sent you

    Thanks

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks. I just turned off the “Horizontal Scrolling” checkbox for table 5 and instead activate the TablePress Responsive Tables Extension, with the Shortcode

    [table id=5 responsive=scroll /]
    

    and that seems to be working. The table is scrollable on mobile.

    Regards,
    Tobias

    Thread Starter purityboy83

    (@purityboy83)

    Hi
    @tobiasbg

    Your guide has been very helpful.

    thank you.

    Plugin Author TobiasBg

    (@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!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Are the width restrictions set by default?’ is closed to new replies.