• Resolved webworks

    (@webworks)


    Hello, the pricing at the first floor plan is surrounded by a border and left aligned. I’ve followed examples from your other answered posts, but neither one appears to be working.

    We need them to be center aligned and the border removed from the pricing.

    .table-mfp {
    text-align: center;
    border: none;
    }

    The above didn’t work. I know that my custom class name works, because when you change the text color to RED, this is the only one that does work (?)

    • This topic was modified 1 year, 10 months ago by webworks.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    Can you clarify why are you inserting a table with just one cell here? That doesn’t really make sense to me?

    Are you doing this because you want to manage the price data in a central location or something like that? If so, I suggest using the TablePress Single Cell Extension from https://tablepress.org/extensions/table-cell-shortcode/ This allows you to only retrieve the raw cell value, without the table HTML code around it (which means that there won’t be extra styling like that border line).

    If you really wan to show this as a one-cell table, this “Custom CSS” should help:

    .table-mfp tr,
    .table-mfp td {
    border: none !important;
    text-align: center;
    word-break: normal;
    }

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘center align and border’ is closed to new replies.