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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    That’s because you have chosen to right align images when inserting them. To fix that, please remove the alignright from the classes attribute in the <img HTML tag.

    To then also center the text in the table, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-3 th,
    .tablepress-id-3 td {
        text-align: center;
    }

    Regards,
    Tobias

    Thread Starter SocietyBlue

    (@societyblue)

    Perfect,

    next donation from me ??

    Only one thing left: How can I center the text vertically ?

    Thanks
    Patrick

    P.S.: (auf Deutsch) Kann ich Dich auch wegen sonstigen Probleml?sungen WordPress betreffend (nur spezielle Sachen, Grundkenntnisse habe ich) kontaktieren? – natürlich gegen Bezahlung. Ist mir wichtig, weil ich meine Websites optimal hinbekommen m?chte.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Patrick,

    good to hear that this helped! ??
    To also center the text vertically, please extend the code to

    .tablepress-id-3 thead th,
    .tablepress-id-3 tbody td {
        text-align: center;
        vertical-align: middle;
    }

    Regards,
    Tobias

    P.S.: Leider muss ich dich zu der Frage entt?uschen. Ich bin mit TablePress schon so ausgelastet, dass mehr Support einfach nicht m?glich ist. Das Ganze ist ja auch “nur” ein Hobby, ich mache das ja nicht beruflich. Sorry.

    Thread Starter SocietyBlue

    (@societyblue)

    Hmm,

    now something strange happened. I have 2 tables. id-1 and id-3.

    I put the code in both “Custom CSS” textareas. But only 1 table works properly amd the other changes the code. Maybe I made a mistake in one table and now the other table it over.

    It must be very simple but now I`m confused ??

    Code fpr id-1

    .tablepress thead th,
    .tablepress tfoot th {
    background-color: #F5F5F5;
    }

    #main .tablepress-id-1 th,
    .tablepress-id-1 td {
    text-align: center;
    }

    .tablepress-id-1 .column-2 {
    width: 100px !important;
    }

    .tablepress-id-1 thead th,
    .tablepress-id-1 tbody td {
    text-align: center;
    vertical-align: middle;
    }

    Table looks perfect. When I change the “1” into “3” in the css area for table 3 then table 3 is correct, but table 1 changes to beginning.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    there’s some slight misunderstanding here: There’s not a “Custom CSS” textarea for each table separately. There’s just one common “Custom CSS” textarea that holds the CSS for all tables. So, you will have to put the CSS for both tables into that textarea.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘objects centric’ is closed to new replies.