Support » Plugin: TablePress » Unable to centralize table inside SiteOrigin widget

  • Resolved Vera Schafer

    (@vschafer)


    I am trying to get these tables centralized inside a text widget using SiteOrigin plugin. I used this code in Plugin Options but it is not working.

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

    What am I doing wrong?

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The problem here is actually that the tables do not stretch to 100% width and have mismatching header/body cell alignments. This is caused by the “Horizontal Scrolling” feature being unable to properly set column widths, due to the tables being inside those collapsable sections.

    I therefore recommend to use a slightly different technical solution for horizontal scrolling. For that, please uncheck the “Horizontal Scrolling” checkbox on the table’s “Edit” screen and instead use the scroll mode of the TablePress Extension from https://tablepress.org/extensions/responsive-tables/

    After that, the tables should be 100% wide and won’t need centering.

    Regards,
    Tobias

    Vera Schafer

    (@vschafer)

    Thanks a lot! It worked like a charm 💕

    Vera Schafer

    (@vschafer)

    A donation is on its way. Well deserved

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!
    And thanks for the donation, I really appreciate it!

    Best wishes,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to centralize table inside SiteOrigin widget’ is closed to new replies.