• Resolved mrssmithdesign

    (@mrssmithdesign)


    Goodday, Thanks for a great plugin ?? I have created tables with multiple rows and 2 columns. How do I get the price (in the right column) text to RIGHT align to the cell? Currently, the prices are all different and I would like them to all sit aligned to the right edge of the table. Does this make sense?

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    This is possible with “Custom CSS”. For example, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-1 .column-2,
    .tablepress-id-2 .column-2 {
      text-align: right;
    }

    Regards,
    Tobias

    Thread Starter mrssmithdesign

    (@mrssmithdesign)

    THANK you so much Tobias, that is brilliant! I appreciate the extremely prompt response. One last thing, how do I change the width of the columns, some of the prices are too long (wide) for the column so they are being ‘split’. Thanks

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    setting column widths is possible with other CSS code: https://tablepress.org/faq/column-widths/

    However, it might be easier to just disallow automatic line breaks in them, by using this extended CSS Command:

    .tablepress-id-1 .column-2,
    .tablepress-id-2 .column-2 {
      text-align: right;
      white-space: nowrap;
    }

    Regards,
    Tobias

    Thread Starter mrssmithdesign

    (@mrssmithdesign)

    Gee whizz you are BRILLIANT!! Thank you, your support service is incredible. Okay may I ask one more question please. I know how to change the text colour etc, how do i set it so that on the mouse over the text changes to another colour (not just the background) So currently on mouse over the background goes white but the text remains its original colour, i want the text to change to a purple. is that possible? Again, thank you so much

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    for that, I recommend to use this CSS code (which will directly affect all tables at once):

    .tablepress .row-hover tr:hover td {
        background-color: #ffffff;
        color: #ff0000;
    }

    Regards,
    Tobias

    Thread Starter mrssmithdesign

    (@mrssmithdesign)

    Thank you and have a great weekend.

    Thread Starter mrssmithdesign

    (@mrssmithdesign)

    ??

    Plugin Author Tobias B?thge

    (@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 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Text align IN cell’ is closed to new replies.