Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Here, I suggest to not use the <p> HTML tags centering the text. Instead, just put in the plain text (and image) into the cell, and then center the cell content with “Custom CSS” for TablePress, i.e. by adding

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

    to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress.

    Regards,
    Tobias

    Thread Starter inbama

    (@inbama)

    Oh, wow. That totally works. I was afraid I wouldn’t be able to use html hyperlinks when you said enter plain text, but after playing around with it, and putting each command on a separate line, it worked. Thank you!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, with “plain text”, I actually meant to just remove the <p> tags. Sorry for the confusion.

    Good to see that it’s working now! ??

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter inbama

    (@inbama)

    We use TablePress on several sites (https://onevoicefamily.com) and I just love it. It’s so simple. Just rated with 5 stars and I can’t tell you how much we appreciate you! We’ll, I’m gonna try. I’m making a donation, today! I wish it could be more but wanted to say, ‘Thanks, again’.

    Thread Starter inbama

    (@inbama)

    Okay, I’ve got a follow-up question. On this page, https://onevoicefamily.com/product-service/ I got two tables that I wish to center each cell. Presently, I added,

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

    Is there a shorter way to write, or is that correct? Also, I would like the first column not to be centered on each of these tables. Is that possible?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the rating, and for wanting to donate, I really appreciate it!

    Yes, that “Custom CSS” is fine. If you wanted to, you could reduce that to

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

    To then not center the first column, you can add

    .tablepress-id-1 .column-1,
    .tablepress-id-3 .column-1 {
    	text-align: left;
    }

    Regards,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Line spacing in each cell is too big’ is closed to new replies.