Elementor Align Buttons To Bottom Easily

Elementor Align Buttons To Bottom Easily

Check out our CSS Course, made especially for Elementor users.

Table of Contents

In this tutorial, I'm going to show you how you can easily and quickly align Elementor buttons to the bottom of your containers or columns, or your Elementor CTA buttons or pricing tables buttons. you will learn how to align any of these buttons to the bottom, for when you have available free space.

This works with Elementor free and pro.

See demos here for containers and CTAs, and keep in mind it also works for Pricing tables and columns.

Elementor bottom aligned buttons for Containers

We will see two methods for this: one without CSS, and the other with CSS.

Containers bottom aligned buttons without CSS

Elementor Align Buttons To Bottom Easily 1

This one is pretty simple: go to the element that's just before your button, in the Advanced tab, and set its Size to Grow.

That element will now occupy all the available space, pushing your button to the bottom of the container.

Con of this method? If you add another element above the button, then you have to go back, unset 'grow' on the prior element, and set it again on the newly added element.

CSS method of aligning buttons to bottom for Elementor containers

With CSS flexbox, there is an even better way of achieving this, that does not require you to change the settings of other elements. You simply set the margin-top of the button element to "auto".

Unfortunately, with Elementor, this requires custom CSS. For now at least, there is no other way to add a margin-top of "auto", even with the new "custom" option for the margin. The problem there is that the margin gets added to an inner wrapper element, and not the outer element, where it needs to be.

So we have to use CSS.

Add the following CSS in the button Advanced > Custom CSS field:

selector {
margin-top:auto;
}

Elementor Align Buttons To Bottom Easily 2

Aligning Elementor buttons to the bottom of columns

Copy paste the code under Advanced > Custom CSS for the column.

selector .elementor-widget-wrap {
flex-direction: column;
}

selector .elementor-widget-wrap div:last-child {
margin-top: auto;
}

If you have the free version of Elementor, replace ‘selector’ by your own CSS class you gave the columns under Column > Advanced > CSS classes. Then, you can add the CSS to your theme Customizer ‘additional CSS’ area. Example code for Elementor free users

.myalignedcolumn .elementor-widget-wrap {
flex-direction: column;
}

.myalignedcolumn .elementor-widget-wrap div:last-child {
margin-top: auto;
}

Aligning Elementor CTA element buttons to the bottom

Use this code to align Elementor Call to Action elements. Add the CSS only one time on your page. This will work for when you have three (or so) CTAs in a row, in a container.

    

.elementor-cta--skin-classic .elementor-widget-container {
    display: flex;
    flex-direction: column;
}

.elementor-cta--skin-classic .elementor-cta.elementor-cta {
    flex-grow: 1;
    flex-direction: column;
    flex-wrap: nowrap;
}

.elementor-cta--skin-classic .elementor-cta__content.elementor-cta__content {
    height: 100%;
    flex-direction: column;
}

.elementor-cta--skin-classic .elementor-cta__button-wrapper {
    margin-top: auto;
}

Aligning Elementor Pricing Table element to the bottom

Use this code to align Elementor Pricing Table element buttons to the bottom.

You will need to have only the pricing tables in your container or columns. If you have other elements above or below, results may vary. Wrap in an inner section in these cases.

    
.elementor-price-table {
    display: flex;
    flex-direction: column;
}
.elementor-widget-price-table, .elementor-widget-price-table > div, .elementor-widget-price-table > div > div {
    height: 100%;
}
.elementor-price-table__footer {
    margin-top: auto;
}

Finally, enjoy your Elementor bottom aligned buttons !

I hope you have enjoyed this tutorial. Cheers!

Element.how also provides premium tutorials showing awesome advanced designs, check them out here.

Looking for something else? Search across 2445 Elements right here:

Checkout the Elementor Addon Finder directly

Comments

21 Responses

  1. Thanks for this helpful solution. It's working on one of my sites but not others. I can't see any differences in how I've applied the solution. Have you seen this before? Thanks for your help.

  2. Thanks for this code, I used method 1 and the button is now aligned to the bottom, but it is not center aligned and everything I tried has not worked to center align it

    1. Try adding this CSS

      .myalignedcolumn .elementor-widget-wrap div:last-child {
      margin-top: auto;
      margin-left: auto;
      margin-right: auto;
      }

    1. Thanks for letting me know. I updated the code. Probably some Elementor update changed the markup of this element.

      Now it should work. If not, enable 'Optimized DOM' experiment.

  3. I think this is too stressful.
    Here is an easy way;

    1. Click the widget
    2. Go to the Advanced Tab, and set the positon to Absolute.
    3. Click either of the vertical orientation buttons depending on where you want the widget to be positioned in relation to its container (Column)
    4. Adjust the vertical offset as you wish.

    Here's a screenie >> https://paste.pics/c106f709b5ba4dd4e34b8062f4aecf0d

    That's all.

    1. This work but would be considered poor practice and not a great use case of position:absolute;

      Essentially this is opening up for problems in the layout and structure, and adding weak points.

      It's better to keep the buttons in the normal flow, and use advanced layout properties such as flex or grid to get the result wanted.

      1. No, it’s not poor practice. It becomes poor practice if you over-rely on it and use it too often.

Leave a Reply

BRAND NEW

CSS Course For Elementor Users

Become a CSS ninja and design exciting, quality websites that stand out in the crowd.