• Resolved grillinChuck

    (@grillinchuck)


    Hi,

    I have single-line and double-line copy in my Plan titles, however the single-line titles are not centering vertically no matter what custom CSS I try – they stay aligned to the top of the div. I would like the copy to center vertically as is does with the bullet items. Here is the site/page: https://test.ambition.digital/topics/

    Likewise on a mobile device – when viewing the table, the double-line Plan titles spread out to single lines and are aligned at the top of the div rather than centering themselves within it.

    How can they be fixed to all align vertically, and on any device?

    https://www.ads-software.com/plugins/easy-pricing-tables/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author fatcatapps

    (@fatcatapps)

    Hi,

    Thanks for the link to your website but it seems that your page is private – could you change the status of your test page for us to see it and provide you with the necessary css you could use.

    Thread Starter grillinChuck

    (@grillinchuck)

    So sorry; I hadn’t realized the subpages were protected also. That one is now set to Public.
    Thx.

    Plugin Author fatcatapps

    (@fatcatapps)

    Thanks I’m now able to see the tables and titles now seem to be centered on the page.

    Is there anything else we may assist you with?

    Thread Starter grillinChuck

    (@grillinchuck)

    Actually, centering on the page wasn’t the issue, it was centering the single-line Plan titles vertically within their divs.

    More specifically, the single-line Plan titles – in this case, “Market Analysis” and “Employee Research” – are floating toward the top of their respective divs. I’m looking to have them centered vertically in those divs.

    No css tricks that I tried have worked.

    Plugin Author fatcatapps

    (@fatcatapps)

    Please try the adding the below CSS into your Pricing table’s custom css or in your theme style.css

    .ptp-price{display:none !important;}
    .ptp-plan{
        vertical-align: middle!important;
    min-height:90px!important;
    }


    Rashaan

    Thread Starter grillinChuck

    (@grillinchuck)

    Tried your suggestion but it didn’t work.

    Plugin Author fatcatapps

    (@fatcatapps)

    The pricing field was hidden but I see that the single line text are still not vertically centered.

    An alternative method for only the single line text try surrounding them in div tags and add this inline css.

    For example:
    <div style="margin: 16px 0;">Employee Research</div>


    Rashaan

    Thread Starter grillinChuck

    (@grillinchuck)

    Actually I hid the pricing field when I originally built the table, so I didn’t need to add more code to do that.

    The inline css worked well for centering the single-line headings, so thank you. It even worked for centering them in a mobile device view.

    However, I also applied it to the headings that were long enough to break into two lines, since they had been hovering at the top of the div when viewed horizontally on a mobile device. They now are centered when viewed horizontally, but hover at the bottom of the div when viewed vertically.

    I’m not understanding why this happens when the copy in the individual Plan Features cells centers just right no matter the device or orientation.

    Plugin Author fatcatapps

    (@fatcatapps)

    Hi Grillin,
    I’m not sure what is causing some of the headers to be displaced on different views but this might be related to CSS conflicts with theme as well.


    Rashaan

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Vertical align for Plan cells’ is closed to new replies.