Site logo

Archived topic

How to align buttons to the bottom of a container?

17 replies · Started by Sascha on October 1, 2021

Viewing posts 1–15 of 18

On this page I have used a GBP Pricing-Table-Template and now need to align the buttons to the bottom of each table.

Check this screenshot please.

The containers already have 100 vh each, so the buttons should always align to bottom no matter how many other items are between the button and the upper headline.

I had already added this CSS to customizer, but didn't work:


@media screen and (max-width: 1008px) {
  body.page-id-5870 .gb-button-wrapper {
    position: absolute;
    bottom: -80vh;
  }
}

Please help :)

Thank you in advance and kind regards,
Sascha

Hey there, sure, just allow me to say that I find it really inconvenient to use two different forums.
Why not using one forum for all your GB and GP users? I can hardly imagine that any GP user is not using GB …
Thanks
Sascha

Hi Sascha,

There're also a lot of GB users who are using other themes.

GB is a plugin that can be used in all other WordPress themes.

So your question would be useful for other non-GP GB users :)

Thanks for your understanding!

Got it, thanks for clarifying :)

No problem :)

GB Forum did not help :(
GB Forum has almost never replied to my queries :(

Whereas the GP-support is superb, I'm very frustrated that you don't allow me to place ALL my GP & GB (using Pro versions for both) here for a better overall support-experience.

The issue is already occurring on many of my sites:

site1 > check the table below "LÖSUNGEN"
site2 > check the bottom of the table
site3 > check the buttons

I'm struggling to align all these buttons to the bottom of the surrounding container.

Can you please help me with this, to find a general solution I can apply to all these buttons?

Thank you in advance and kind regards,
Sascha

So instead of giving the class to the button, I give the class to the surrounding container?

So instead of giving the class to the button, I give the class to the surrounding container?

That's correct :)

Hi again,

I have applied the CSS-code (via Simple CSS) and classes to the pricing table on this page, but it does not work.

Can you please help once more?

All 3 tables should have the same height.
The buttons and the pricing-headline above the button should be aligned to the bottom of each table.

Access credentials below.

Thank you in advance and kind regards,
Sascha

Hi there,

The login doesn't work for me, I'm not able to log in and check the backend.

In the page editor, select the Grid block, set the vertical alignment to defaultinstead of top.

Let me know if this helps :)

Oops, sorry, please try again now …

Hello,

I'm terribly sorry, when adding this new "techmin" user I didn't realize it was not added properly. Now I have added properly, tested in incognito window and the login works :)

Regarding your previous suggestion, the vertical alignment in grid settings was already set to "top". However, it interferes with the workaround that Elvin has previously suggested above.

For this pricing table, I have 2 requirements:

1. All tables should have the same height
2. In each table, the last two blocks (pricing & button) should align to the button

I hope you can help me achieve this.

Thank you in advance and kind regards,
Sascha

PS: Please find the credentials below

This archived topic is closed to new replies.