• Resolved hazelstreet

    (@hazelstreet)


    Hi, this plugin is great!

    I am using it for a client that needs to update their lists regularly through importing csv files (and replacing the current list when updated). They insert new rows often when new items are added. They also need “subhead” lines, separating different sections of rows.

    To create these “subhead” lines, I am merging the columns on those particular rows, (using ‘#colspan#’) and bolding the text. The client also wants those “subhead”s to be centered within the merged row.

    I know that I can center the text by calling out the exact table/rows in the custom CSS, but because these row numbers sometimes change when they re-import the lists, I would rather not have to update each table/row # called out in the CSS every time they re-import.

    So, here is my question:

    Is there some kind of CSS that I can add that will ALWAYS center every row that I have merged with the ‘#colspan#’ tool?

    Thanks for any help!

    https://wordpress.org/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Something like that should be possible with so-called CSS Attribute Selectors. Please try adding this (with the correct table ID) to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-123 tbody td[colspan] {
        text-align: center;
    }

    Regards,
    Tobias

    Thread Starter hazelstreet

    (@hazelstreet)

    That worked like a charm, thank you very much! I really appreciate your quick help!

    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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Centering all "#colspan#" rows?’ is closed to new replies.