• Resolved Patrick69003

    (@patrick69003)


    Hi Tobias,

    Hereafter is the request I did at the wrong place, by commenting in a closed topic(named “Center Table Description” 4,5 month old). Sorry for that. Therefore I am now opening a new topic. I went through FAQ, documentation and support forum but did not workout any proper fix. I am running WP 4.9.6. and Tablepres 1.9.1.
    Here is a copy of my today’s earlier support request.

    Many thanks for your work and support

    Have a great evening.
    Look forward to your answer

    Patrick69003
    Lyon, France

    —————————————————–

    Hi Tobias,

    Hope you are doing great as this new year is stepping in.
    Not much experience with table press but feel it very useful despite my very simple needs.

    I use it to display figures here : https://www.blog-magestionlocative.fr/irl-insee-derniers-indices-publies-bien-reviser-vos-loyers/

    Very happy with how it works except for 2 things

    (a) unable to have the table centered despite the following css code in the options of the plugins. Any hint to fix the issue
    —————————————-
    .tablepress-id-2 {
    width: auto;
    margin: 0 auto 1em;
    }

    .tablepress-id-2 .row-2 .column-1,
    .tablepress-id-2 .row-2 .column-2,
    .tablepress-id-2 .row-2 .column-3,
    .tablepress-id-2 .row-2 .column-4 {
    background-color: #fffa07;
    }
    —————————————

    (b) i am unable to center the header text in each column.
    Again, any tip or missing css to fix it.

    Many thanks

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

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Please uncheck the “Use DataTables” checkbox on the table’s “Edit” screen. As the indidivual features are already turned off, this is no longer necessary, but interferes here a little bit.

    To center the header cells, you can use

    .tablepress-id-2 thead th {
      text-align: center;
    }

    Regards,
    Tobias

    Thread Starter Patrick69003

    (@patrick69003)

    Hi Tobias,

    Thanks for the tip.
    However i am unable to get the right display.

    I am looking for
    1-the table to be centered in the page
    2-the content to be centered in the cells, both in the column heading and in the rest of the table
    3-the table to be narrowed to the minimum width necessary to see the full content

    My earlier code fitted # 3 but the table was stuck on the left of the page and any single content was aligning on the left side of the cell.

    Using your suggested code I get heading title centered but no change in the other cells, plus I loose #3, the table beeing dsplayed in full width of the page

    Any further recommendation or tip to get this fixed ? Any web place where I can learn more about the parameters variables or anything similar so that i can leave you alone.

    May thanks Tobias. And keep the good job

    Patrick

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    please try this modified “Custom CSS” instead of what you have now:

    .tablepress-id-2 {
        width: auto;
        margin: 0 auto 1em !important;
    }
    .tablepress-id-2 thead th,
    .tablepress-id-2 tbody td {
        text-align: center;
    }
    
    .tablepress-id-2 .row-2 td{
        background-color: #fffa07;
    }

    Regards,
    Tobias

    Thread Starter Patrick69003

    (@patrick69003)

    Hi Tobias,

    Many, many thanks for your quick answer.
    It’s a great fix. It works perfectly. Great job Tobias.
    https://www.blog-magestionlocative.fr/irl-insee-derniers-indices-publies-bien-reviser-vos-loyers/

    There is only one pending issue left.
    The Table Title “Indice IRL insee fin de trimestre” is not centered at all and stays on the left.

    A work around would be me including a regular wp title/heading.
    But I guess there may be a proper way to do that with some extra custom css.

    What do you think ? any simple fix for that (and then we are done…;):);))

    Have a great day

    Kind regards

    Patrick

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    to center that table name, please add

    .tablepress-table-name {
      text-align: center;
    }

    Regards,
    Tobias

    Thread Starter Patrick69003

    (@patrick69003)

    Hi Tobias,

    Perfect fix again.
    Many thanks for such a professional support.
    Have a great day
    Patrick

    Thread Starter Patrick69003

    (@patrick69003)

    Hi Tobias,

    I have been trying to donate with a credit card (europe) but the donation page keep asking for the creation of a paypal account (and I do not want to do so). So i am unable to confirm payment. Why is that confusion between paypal and a cc payment ? Please let me know. I must say I am fed up with this web beeing full of forced agreement and data collection.

    Kind regards

    Patrick

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Patrick,

    unfortunately, as I’m not a company, I cannot directly receive/accept credit cards donations, but have to rely on PayPal for this ?? I know that it’s sad that they require an account for this, but unfortunately, there is nothing that I can do about that. Would the other options mentioned on https://tablepress.org/donate/ maybe work?

    Regards,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Center my table in the page’ is closed to new replies.