• Resolved terrysb

    (@terrysb)


    When I have a #colspan# in my table, I want the text in the column to the left of #colspan# to have a center alignment across the whole span. I probably also want to increase the size of the Text. Can I do this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    thanks for your question, and sorry for the trouble.

    Sure, that’s no problem. You simply have to target that cell with some “Custom CSS”. For example, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-123 .row-4 .column-1 {
      text-align: center;
      font-size: 18px;
    }

    with the correct table ID, row number, and column number.

    Regards,
    Tobias

    Thread Starter terrysb

    (@terrysb)

    Thank you for your answer; unfortunately it doesn’t seem to work for me.
    The results of the table may be seen at: https://cccameraclub.com/wp/images-of-the-year/
    Screenshots of the code and the table are at https://www.dropbox.com/sh/0cwia3nwbdpvdsi/AADEiOmhsH-hVjixvJ7qg3Cga?dl=0″ in the images 1308 and 1310 respectively.
    Adding the code seems to have no effect on the date 2014 in row 1, column 1 of the table, while just having the #colspan# in row 4, seems to align the image in column 1 appropriately. What have I done wrong. Thanks in advance.

    Hi,

    the CSS that you entered is slightly wrong. Not only is there an extra “TablePress:” at the beginning, but also some spaces are missing. Please replace the entire content of your “Custom CSS” field with this:

    .tablepress-id-20 .row-1 .column-1 {
      text-align: center;
      font-size: 32px;
    }

    Regards,
    Tobias

    Thread Starter terrysb

    (@terrysb)

    Thanks. That did it. I’m not sure (after comparing the two) where the spaces were missing. I’ll try to watch for that in the future

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    The spaces were missing between the CSS class selectors in the first line.

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘#colspan# In TablePress’ is closed to new replies.