• Resolved katiewsi

    (@katiewsi)


    Hi all,

    I have three tables under an individual tab, however the first table works fine but the other two the header width has shrunk. Why is this? Tried fixing with CSS but nothing worked.

    Can someone help me please?

    Many thanks.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This can happen when “Horizontal Scrolling” is used with a table that is then shown in a tab.
    The reason for this problem is that, with tabs, only the first table is shown when the page is loaded. The tables on the other tabs are hidden.
    This however means that the browser can not calculate things like column widths for these tables (because hidden elements don’t have a width, so to say). This results in the widths to look wrong.

    For a possible solution, please see https://www.ads-software.com/support/topic/tables-within-elementor-components-tabs/

    Regards,
    Tobias

    Thread Starter katiewsi

    (@katiewsi)

    Hi Tobias,

    Thanks for your speedy reply! I have tried all of those JS instances and it still doesn’t appear to be working ??

    Thanks,
    Katie

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Katie,

    Can you please try again after removing the first line of that code? It’s causing an error here (due to the code loading order), but shouldn’t actually be needed.

    If that still doesn’t help, I suggest that you consider getting a TablePress premium license. As part of the priority email support that is included, I’ll then be able to take a deeper look at this on your specific site.

    Best wishes,
    Tobias

    Thread Starter katiewsi

    (@katiewsi)

    Hi Tobias,

    What would the code be, as there’s multiple on that other ticket…

    Thanks a lot,
    Katie

    Plugin Author Tobias B?thge

    (@tobiasbg)

    H,

    please try this: https://www.ads-software.com/support/topic/tables-within-elementor-components-tabs/#post-16528272

    In your case, it should be fine to also remove the line

    $('.elementor-tab-content .dataTable').DataTable({retrieve:true}).columns.adjust().draw();

    from the code.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Table Header Row Width’ is closed to new replies.